1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-02-24 15:11:03 +00:00

Fixed deleting key data on auto save

This commit is contained in:
M66B 2021-04-09 17:04:26 +02:00
parent 237768b4f8
commit 160a658ed9

View file

@ -4799,7 +4799,7 @@ public class FragmentCompose extends FragmentBase {
return draft;
}
if (!shouldEncrypt)
if (!shouldEncrypt && !autosave)
for (EntityAttachment attachment : attachments)
if (attachment.isEncryption())
db.attachment().deleteAttachment(attachment.id);