mirror of https://github.com/M66B/FairEmail.git
Fixed queuing daily rules
This commit is contained in:
parent
c31adebf5a
commit
d95cc81bcf
|
@ -108,14 +108,13 @@ public class WorkerDailyRules extends Worker {
|
|||
EntityOperation.queue(context, message, EntityOperation.BODY);
|
||||
}
|
||||
|
||||
if (defer) {
|
||||
if (defer)
|
||||
EntityOperation.queue(context, message, EntityOperation.RULE, -1L);
|
||||
continue;
|
||||
else {
|
||||
EntityLog.log(context, "Executing daily rules message=" + message.id);
|
||||
EntityRule.run(context, rules, message, null, null);
|
||||
}
|
||||
|
||||
EntityLog.log(context, "Executing daily rules message=" + message.id);
|
||||
EntityRule.run(context, rules, message, null, null);
|
||||
|
||||
db.setTransactionSuccessful();
|
||||
} catch (Throwable ex) {
|
||||
Log.e(ex);
|
||||
|
|
Loading…
Reference in New Issue