mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-01 12:44:42 +00:00
Prevent removing attached images
This commit is contained in:
parent
058cfb031f
commit
2a734a8f83
1 changed files with 2 additions and 2 deletions
|
@ -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…
Reference in a new issue