We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ad7423c commit f8e3d61Copy full SHA for f8e3d61
Sources/PowerSync/attachments/AttachmentQueue.swift
@@ -278,8 +278,9 @@ public class AttachmentQueue {
278
* Archive any items not specified in the watched items except for items pending delete.
279
*/
280
for attachment in currentAttachments {
281
- if attachment.state != AttachmentState.queuedDelete,
282
- items.first(where: { $0.id == attachment.id }) == nil
+ if attachment.state != AttachmentState.queuedDelete &&
+ attachment.state != AttachmentState.queuedUpload,
283
+ items.first(where: { $0.id == attachment.id }) == nil
284
{
285
attachmentUpdates.append(
286
attachment.with(state: AttachmentState.archived)
0 commit comments