Reply/forward encrypted only when pro

This commit is contained in:
M66B 2020-03-28 09:43:08 +01:00
parent 2cef677367
commit fa7723695d
1 changed files with 4 additions and 2 deletions

View File

@ -3154,9 +3154,11 @@ public class FragmentCompose extends FragmentBase {
if (ref.plain_only != null && ref.plain_only)
data.draft.plain_only = true;
if (ref.ui_encrypt != null && !EntityMessage.ENCRYPT_NONE.equals(ref.ui_encrypt)) {
if (ActivityBilling.isPro(context)) {
data.draft.encrypt = ref.ui_encrypt;
data.draft.ui_encrypt = ref.ui_encrypt;
}
}
if (answer > 0) {
EntityAnswer a = db.answer().getAnswer(answer);