mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-19 05:38:31 +00:00
Refuse to store unencrypted messages
This commit is contained in:
parent
99af10900b
commit
f765288f3b
1 changed files with 6 additions and 0 deletions
|
@ -554,6 +554,12 @@ public class MessageHelper {
|
||||||
return imessage;
|
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);
|
build(context, message, attachments, identity, send, imessage);
|
||||||
|
|
||||||
return imessage;
|
return imessage;
|
||||||
|
|
Loading…
Reference in a new issue