Allow saving signed messages

This commit is contained in:
M66B
2022-02-09 08:18:55 +01:00
parent 7379c4f90e
commit 24f3142144

View File

@@ -5656,8 +5656,9 @@ public class FragmentCompose extends FragmentBase {
action == R.id.action_undo ||
action == R.id.action_redo ||
action == R.id.action_check) {
boolean unencrypted = (draft.ui_encrypt == null ||
EntityMessage.ENCRYPT_NONE.equals(draft.ui_encrypt));
boolean unencrypted =
(!EntityMessage.PGP_SIGNENCRYPT.equals(draft.ui_encrypt) &&
!EntityMessage.SMIME_SIGNENCRYPT.equals(draft.ui_encrypt));
if ((dirty && unencrypted) || encrypted) {
if (save_drafts) {
Map<String, String> c = new HashMap<>();