1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-02-23 22:51:02 +00:00

Prevent encryption when not rewquested

This commit is contained in:
M66B 2021-01-07 17:48:50 +01:00
parent b76fa116f0
commit 7fa6aedd3d

View file

@ -4613,6 +4613,11 @@ public class FragmentCompose extends FragmentBase {
return draft;
}
if (!shouldEncrypt)
for (EntityAttachment attachment : attachments)
if (attachment.isEncryption())
db.attachment().deleteAttachment(attachment.id);
if (action == R.id.action_save ||
action == R.id.action_undo ||
action == R.id.action_redo ||