Revert "Fixed needs encryption"

This reverts commit 8d5a69cb88.
This commit is contained in:
M66B 2021-12-09 07:46:29 +01:00
parent 132405b6db
commit 110a5bd40e
1 changed files with 1 additions and 1 deletions

View File

@ -5725,7 +5725,7 @@ public class FragmentCompose extends FragmentBase {
(EntityMessage.PGP_SIGNONLY.equals(draft.ui_encrypt) && action == R.id.action_send) ||
EntityMessage.SMIME_SIGNENCRYPT.equals(draft.ui_encrypt) ||
(EntityMessage.SMIME_SIGNONLY.equals(draft.ui_encrypt) && action == R.id.action_send);
boolean needsEncryption = (shouldEncrypt && (dirty || !encrypted));
boolean needsEncryption = (dirty && !encrypted && shouldEncrypt);
boolean autosave = extras.getBoolean("autosave");
if (needsEncryption && !autosave) {
args.putBoolean("needsEncryption", true);