1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-01-01 04:35:57 +00:00

Prevent saving unencrypted drafts

This commit is contained in:
M66B 2021-12-07 17:00:37 +01:00
parent 50d4595e3a
commit f1a573ced5

View file

@ -4942,6 +4942,8 @@ public class FragmentCompose extends FragmentBase {
}
if (save_drafts &&
(data.draft.ui_encrypt == null ||
EntityMessage.ENCRYPT_NONE.equals(data.draft.ui_encrypt)) &&
(!"new".equals(action) ||
answer > 0 ||
!TextUtils.isEmpty(to) ||