mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-07 01:23:38 +02:00
Refuse to store unencrypted messages
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user