Skip to content

Commit a50be17

Browse files
committed
Filter QueuedBackupAttachmentUpload rows by ready for internal settings display
1 parent 396a4b6 commit a50be17

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Signal/src/ViewControllers/AppSettings/Internal/InternalListMediaViewController.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,11 @@ class InternalListMediaViewController: OWSTableViewController2 {
4343
) = DependenciesBridge.shared.db.read { tx in
4444
return (
4545
try! QueuedBackupAttachmentUpload
46+
.filter(Column(QueuedBackupAttachmentUpload.CodingKeys.state) == QueuedBackupAttachmentUpload.State.ready.rawValue)
4647
.filter(Column(QueuedBackupAttachmentUpload.CodingKeys.isFullsize) == true)
4748
.fetchCount(tx.database),
4849
try! QueuedBackupAttachmentUpload
50+
.filter(Column(QueuedBackupAttachmentUpload.CodingKeys.state) == QueuedBackupAttachmentUpload.State.ready.rawValue)
4951
.filter(Column(QueuedBackupAttachmentUpload.CodingKeys.isFullsize) == false)
5052
.fetchCount(tx.database),
5153
try! OrphanedBackupAttachment.fetchCount(tx.database),

0 commit comments

Comments
 (0)