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:
parent
b76fa116f0
commit
7fa6aedd3d
1 changed files with 5 additions and 0 deletions
|
@ -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 ||
|
||||
|
|
Loading…
Reference in a new issue