Prevent encryption when not rewquested

This commit is contained in:
M66B 2021-01-07 17:48:50 +01:00
parent b76fa116f0
commit 7fa6aedd3d
1 changed files with 5 additions and 0 deletions

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