Match attachments by properties

This commit is contained in:
M66B
2019-05-08 10:32:37 +02:00
parent 61f7a2f692
commit 4cf330dfb6
11 changed files with 1807 additions and 57 deletions

View File

@@ -2182,7 +2182,7 @@ public class FragmentCompose extends FragmentBase {
List<EntityAttachment> attachments = db.attachment().getAttachments(draft.id);
for (EntityAttachment attachment : attachments)
if (!attachment.available)
EntityOperation.queue(context, db, draft, EntityOperation.ATTACHMENT, attachment.sequence);
EntityOperation.queue(context, db, draft, EntityOperation.ATTACHMENT, attachment.id);
}
db.setTransactionSuccessful();