Reply encrypted always

This commit is contained in:
M66B 2022-08-26 17:40:34 +02:00
parent 7c20e2ee97
commit 813ee4b3cc
1 changed files with 4 additions and 2 deletions

View File

@ -5044,13 +5044,15 @@ public class FragmentCompose extends FragmentBase {
EntityMessage.PGP_SIGNENCRYPT.equals(ref.ui_encrypt)) { EntityMessage.PGP_SIGNENCRYPT.equals(ref.ui_encrypt)) {
if (Helper.isOpenKeychainInstalled(context) && if (Helper.isOpenKeychainInstalled(context) &&
selected.sign_key != null && selected.sign_key != null &&
PgpHelper.hasPgpKey(context, recipients)) (EntityMessage.PGP_SIGNENCRYPT.equals(ref.ui_encrypt) ||
PgpHelper.hasPgpKey(context, recipients)))
data.draft.ui_encrypt = ref.ui_encrypt; data.draft.ui_encrypt = ref.ui_encrypt;
} else if (EntityMessage.SMIME_SIGNONLY.equals(ref.ui_encrypt) || } else if (EntityMessage.SMIME_SIGNONLY.equals(ref.ui_encrypt) ||
EntityMessage.SMIME_SIGNENCRYPT.equals(ref.ui_encrypt)) { EntityMessage.SMIME_SIGNENCRYPT.equals(ref.ui_encrypt)) {
if (ActivityBilling.isPro(context) && if (ActivityBilling.isPro(context) &&
selected.sign_key_alias != null && selected.sign_key_alias != null &&
SmimeHelper.hasSmimeKey(context, recipients)) (EntityMessage.SMIME_SIGNENCRYPT.equals(ref.ui_encrypt) ||
SmimeHelper.hasSmimeKey(context, recipients)))
data.draft.ui_encrypt = ref.ui_encrypt; data.draft.ui_encrypt = ref.ui_encrypt;
} }
} }