Prevent encryption when not rewquested

pull/191/head
M66B 5 years ago
parent b76fa116f0
commit 7fa6aedd3d

@ -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…
Cancel
Save