S/MIME is natively supported

This commit is contained in:
M66B 2020-07-06 11:29:34 +02:00
parent 308087a108
commit 7b21667657
1 changed files with 5 additions and 2 deletions

View File

@ -3401,8 +3401,11 @@ public class FragmentCompose extends FragmentBase {
// Encryption
if (ref.ui_encrypt != null && !EntityMessage.ENCRYPT_NONE.equals(ref.ui_encrypt)) {
if (ActivityBilling.isPro(context) && Helper.isOpenKeychainInstalled(context))
data.draft.ui_encrypt = ref.ui_encrypt;
if (ActivityBilling.isPro(context))
if (Helper.isOpenKeychainInstalled(context) ||
EntityMessage.SMIME_SIGNONLY.equals(ref.encrypt) ||
EntityMessage.SMIME_SIGNENCRYPT.equals(ref.encrypt))
data.draft.ui_encrypt = ref.ui_encrypt;
}
// Reply template