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);