Delay notifications for summary generation

master
M66B 2 weeks ago
parent 36b03e9a5b
commit e846485d52

@ -5131,7 +5131,10 @@ class Core {
}
}
} finally {
db.message().setMessageNotifying(message.id, 0);
if (message.notifying == EntityMessage.NOTIFYING_RULE_PENDING)
message.notifying = EntityMessage.NOTIFYING_IGNORE;
else
db.message().setMessageNotifying(message.id, 0);
}
reportNewMessage(context, account, folder, message);

@ -97,6 +97,7 @@ public class EntityMessage implements Serializable {
static final String TABLE_NAME = "message";
static final int NOTIFYING_IGNORE = -2;
static final int NOTIFYING_RULE_PENDING = -3;
static final Integer ENCRYPT_NONE = 0;
static final Integer PGP_SIGNENCRYPT = 1;

@ -1690,6 +1690,7 @@ public class EntityRule {
return false;
if (!this.async && this.id != null) {
message.notifying = EntityMessage.NOTIFYING_RULE_PENDING;
EntityOperation.queue(context, message, EntityOperation.RULE, this.id, browsed);
return true;
}

Loading…
Cancel
Save