mirror of https://github.com/M66B/FairEmail.git
Prevent saving unencrypted messages
This commit is contained in:
parent
03ec67a389
commit
2c511dd0f5
|
@ -5742,7 +5742,9 @@ public class FragmentCompose extends FragmentBase {
|
|||
action == R.id.action_undo ||
|
||||
action == R.id.action_redo ||
|
||||
action == R.id.action_check) {
|
||||
if ((dirty || encrypted) && !needsEncryption) {
|
||||
boolean unencrypted = (draft.ui_encrypt == null ||
|
||||
EntityMessage.ENCRYPT_NONE.equals(draft.ui_encrypt));
|
||||
if ((dirty && unencrypted) || encrypted) {
|
||||
if (save_drafts) {
|
||||
Map<String, String> c = new HashMap<>();
|
||||
c.put("id", draft.id == null ? null : Long.toString(draft.id));
|
||||
|
|
Loading…
Reference in New Issue