File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
Sources/PowerSync/attachments Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -417,15 +417,15 @@ open class AttachmentQueue {
417
417
}
418
418
419
419
let exists = try await localStorage. fileExists ( filePath: localUri)
420
- if attachment. state == AttachmentState . synced ||
421
- attachment. state == AttachmentState . queuedUpload &&
422
- !exists
420
+ if attachment. state == AttachmentState . synced
421
+ || attachment. state == AttachmentState . queuedUpload && !exists
423
422
{
424
423
// The file must have been removed from the local storage
425
- updates. append ( attachment. with (
426
- state: . archived,
427
- localUri: . some( nil ) // Clears the value
428
- ) )
424
+ updates. append (
425
+ attachment. with (
426
+ state: . archived,
427
+ localUri: . some( nil ) // Clears the value
428
+ ) )
429
429
}
430
430
}
431
431
You can’t perform that action at this time.
0 commit comments