We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a0836a commit de9cb6fCopy full SHA for de9cb6f
Sources/PowerSync/attachments/AttachmentQueue.swift
@@ -413,6 +413,11 @@ open class AttachmentQueue {
413
414
for attachment in attachments {
415
guard let localUri = attachment.localUri else {
416
+ // Redownload synced attachments with missing localUri.
417
+ // Can happen when the app is reinstalled and a new sandbox is created in the iOS simulator.
418
+ if attachment.state == AttachmentState.synced {
419
+ updates.append(attachment.with(state: .queuedDownload))
420
+ }
421
continue
422
}
423
0 commit comments