Skip to content

Commit ca1a163

Browse files
authored
List media regardless of backup attachment download queue status
1 parent 2af868e commit ca1a163

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

SignalServiceKit/MessageBackup/Attachments/BackupAttachmentDownloadManager.swift

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,11 @@ public class BackupAttachmentDownloadManagerImpl: BackupAttachmentDownloadManage
191191

192192
public func restoreAttachmentsIfNeeded() async throws {
193193
guard appContext.isMainApp else { return }
194+
195+
if FeatureFlags.MessageBackup.remoteExportAlpha {
196+
try await listMediaManager.queryListMediaIfNeeded()
197+
}
198+
194199
switch await statusManager.beginObservingIfNeeded(type: .download) {
195200
case .running:
196201
break
@@ -213,9 +218,6 @@ public class BackupAttachmentDownloadManagerImpl: BackupAttachmentDownloadManage
213218
try await taskQueue.stop()
214219
return
215220
}
216-
if FeatureFlags.MessageBackup.remoteExportAlpha {
217-
try await listMediaManager.queryListMediaIfNeeded()
218-
}
219221
do {
220222
try await progress.beginObserving()
221223
} catch {

0 commit comments

Comments
 (0)