Revert OpenKeychain check

pull/209/head
M66B 2 years ago
parent 8b0e5e1c57
commit 0293c52651

@ -1576,9 +1576,7 @@ public class FragmentCompose extends FragmentBase {
if (identity == null) if (identity == null)
return draft.ui_encrypt; return draft.ui_encrypt;
if (identity.encrypt == 0 && !Helper.isOpenKeychainInstalled(context)) if (encrypt_default || identity.encrypt_default)
draft.ui_encrypt = null;
else if (encrypt_default || identity.encrypt_default)
draft.ui_encrypt = (identity.encrypt == 0 draft.ui_encrypt = (identity.encrypt == 0
? EntityMessage.PGP_SIGNENCRYPT ? EntityMessage.PGP_SIGNENCRYPT
: EntityMessage.SMIME_SIGNENCRYPT); : EntityMessage.SMIME_SIGNENCRYPT);
@ -4960,7 +4958,6 @@ public class FragmentCompose extends FragmentBase {
!"editasnew".equals(action)) !"editasnew".equals(action))
data.draft.plain_only = 1; data.draft.plain_only = 1;
if (selected.encrypt != 0 || Helper.isOpenKeychainInstalled(context))
if (encrypt_default || selected.encrypt_default) if (encrypt_default || selected.encrypt_default)
if (selected.encrypt == 0) if (selected.encrypt == 0)
data.draft.ui_encrypt = EntityMessage.PGP_SIGNENCRYPT; data.draft.ui_encrypt = EntityMessage.PGP_SIGNENCRYPT;

Loading…
Cancel
Save