Fixed deleting key data on auto save

pull/197/head
M66B 4 years ago
parent 237768b4f8
commit 160a658ed9

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

Loading…
Cancel
Save