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 5c511bd commit 53d96a3Copy full SHA for 53d96a3
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