Remove inline attachments

pull/185/head
M66B 4 years ago
parent 9eeadc54c3
commit 0945f31a8a

@ -4544,7 +4544,7 @@ public class FragmentCompose extends FragmentBase {
}
for (EntityAttachment attachment : new ArrayList<>(attachments))
if (!attachment.isAttachment() && attachment.isImage() &&
if (attachment.isInline() && 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