Inline attachments required a content ID

This commit is contained in:
M66B
2019-06-22 14:32:42 +02:00
parent 23cc120c3a
commit af5b3ba467
4 changed files with 4 additions and 5 deletions

View File

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