mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-03 23:56:07 +02:00
Enable encryption only when key available
This commit is contained in:
@@ -5120,15 +5120,13 @@ public class FragmentCompose extends FragmentBase {
|
||||
EntityMessage.PGP_SIGNENCRYPT.equals(ref.ui_encrypt)) {
|
||||
if (Helper.isOpenKeychainInstalled(context) &&
|
||||
selected.sign_key != null &&
|
||||
(EntityMessage.PGP_SIGNENCRYPT.equals(ref.ui_encrypt) ||
|
||||
PgpHelper.hasPgpKey(context, recipients)))
|
||||
PgpHelper.hasPgpKey(context, recipients))
|
||||
data.draft.ui_encrypt = ref.ui_encrypt;
|
||||
} else if (EntityMessage.SMIME_SIGNONLY.equals(ref.ui_encrypt) ||
|
||||
EntityMessage.SMIME_SIGNENCRYPT.equals(ref.ui_encrypt)) {
|
||||
if (ActivityBilling.isPro(context) &&
|
||||
selected.sign_key_alias != null &&
|
||||
(EntityMessage.SMIME_SIGNENCRYPT.equals(ref.ui_encrypt) ||
|
||||
SmimeHelper.hasSmimeKey(context, recipients)))
|
||||
SmimeHelper.hasSmimeKey(context, recipients))
|
||||
data.draft.ui_encrypt = ref.ui_encrypt;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user