Skip changing encryption method when no encryption is used

This commit is contained in:
M66B 2020-06-07 20:03:21 +02:00
parent 5a017fa5e3
commit f77042470b
1 changed files with 2 additions and 1 deletions

View File

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