Skip changing encryption method when no encryption is used

pull/180/head
M66B 5 years ago
parent 5a017fa5e3
commit f77042470b

@ -5170,7 +5170,8 @@ public class FragmentCompose extends FragmentBase {
db.message().setMessageUiEncrypt(message.id, encrypt); db.message().setMessageUiEncrypt(message.id, encrypt);
if (message.identity != null) { if (encrypt != EntityMessage.ENCRYPT_NONE &&
message.identity != null) {
int iencrypt = int iencrypt =
(encrypt == EntityMessage.SMIME_SIGNONLY || (encrypt == EntityMessage.SMIME_SIGNONLY ||
encrypt == EntityMessage.SMIME_SIGNENCRYPT encrypt == EntityMessage.SMIME_SIGNENCRYPT

Loading…
Cancel
Save