Prevent removing attached images

pull/182/head
M66B 5 years ago
parent 058cfb031f
commit 2a734a8f83

@ -4285,8 +4285,8 @@ public class FragmentCompose extends FragmentBase {
}
for (EntityAttachment attachment : new ArrayList<>(attachments))
if (attachment.isInline() && attachment.isImage() &&
!cids.contains(attachment.cid)) {
if (!attachment.isAttachment() && attachment.isImage() &&
attachment.cid != null && !cids.contains(attachment.cid)) {
Log.i("Removing unused inline attachment cid=" + attachment.cid);
db.attachment().deleteAttachment(attachment.id);
}

Loading…
Cancel
Save