1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-27 10:17:18 +00:00

Simplification

This commit is contained in:
M66B 2022-07-01 17:54:42 +02:00
parent 66fa181cb5
commit f5a9d4afef

View file

@ -347,10 +347,7 @@ public class EntityRule {
} }
// Body // Body
JSONObject jbody = null; JSONObject jbody = jcondition.optJSONObject("body");
if (message.encrypt == null ||
EntityMessage.ENCRYPT_NONE.equals(message.encrypt))
jbody = jcondition.optJSONObject("body");
if (jbody != null) { if (jbody != null) {
String value = jbody.getString("value"); String value = jbody.getString("value");
boolean regex = jbody.getBoolean("regex"); boolean regex = jbody.getBoolean("regex");