mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-31 22:26:06 +02:00
Small improvement
This commit is contained in:
@@ -456,7 +456,7 @@ public class EntityRule {
|
||||
|
||||
boolean execute(Context context, EntityMessage message) throws JSONException {
|
||||
boolean executed = _execute(context, message);
|
||||
if (id != null && executed) {
|
||||
if (this.id != null && executed) {
|
||||
DB db = DB.getInstance(context);
|
||||
db.rule().applyRule(id, new Date().getTime());
|
||||
}
|
||||
@@ -744,9 +744,9 @@ public class EntityRule {
|
||||
EntityOperation.queue(context, message, EntityOperation.RAW);
|
||||
}
|
||||
|
||||
if (!complete) {
|
||||
if (!complete && this.id != null) {
|
||||
EntityOperation.queue(context, message, EntityOperation.RULE, this.id);
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
executor.submit(new Runnable() {
|
||||
@@ -963,7 +963,7 @@ public class EntityRule {
|
||||
if (message.ui_seen)
|
||||
return false;
|
||||
|
||||
if (!message.content) {
|
||||
if (!message.content && this.id != null) {
|
||||
EntityOperation.queue(context, message, EntityOperation.BODY);
|
||||
EntityOperation.queue(context, message, EntityOperation.RULE, this.id);
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user