1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-01-01 12:44:42 +00:00

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

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