Change encryption on changing identity only

This commit is contained in:
M66B 2020-07-06 11:42:14 +02:00
parent 7b21667657
commit 19f1cb2587
1 changed files with 3 additions and 0 deletions

View File

@ -4831,6 +4831,9 @@ public class FragmentCompose extends FragmentBase {
draft.ui_encrypt == null || EntityMessage.ENCRYPT_NONE.equals(draft.ui_encrypt))
return null;
if (draft.identity != null && draft.identity.equals(iid))
return draft.ui_encrypt;
EntityIdentity identity = db.identity().getIdentity(iid);
if (identity == null)
return null;