mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-01 12:44:42 +00:00
Summary requires body
This commit is contained in:
parent
064ce7d97c
commit
1ab373d1c9
1 changed files with 5 additions and 0 deletions
|
@ -182,6 +182,11 @@ public class EntityRule {
|
|||
private static boolean needs(List<EntityRule> rules, String what) {
|
||||
for (EntityRule rule : rules)
|
||||
try {
|
||||
JSONObject jaction = new JSONObject(rule.action);
|
||||
int type = jaction.getInt("type");
|
||||
if (type == TYPE_SUMMARIZE)
|
||||
return true;
|
||||
|
||||
JSONObject jcondition = new JSONObject(rule.condition);
|
||||
|
||||
if (jcondition.has(what)) {
|
||||
|
|
Loading…
Reference in a new issue