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

Refuse to store unencrypted messages

This commit is contained in:
M66B 2021-12-08 10:00:19 +01:00
parent 99af10900b
commit f765288f3b

View file

@ -554,6 +554,12 @@ public class MessageHelper {
return imessage;
}
if (EntityMessage.PGP_SIGNENCRYPT.equals(message.ui_encrypt) ||
EntityMessage.SMIME_SIGNENCRYPT.equals(message.ui_encrypt)) {
Log.e("Storing unencrypted message");
throw new IllegalArgumentException("Storing unencrypted message");
}
build(context, message, attachments, identity, send, imessage);
return imessage;