1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-01-02 13:14:39 +00:00

Cancel summary notification last

This commit is contained in:
M66B 2021-07-15 15:03:49 +02:00
parent 648f453553
commit e11c2dd1f1

View file

@ -4072,12 +4072,6 @@ class Core {
" update=" + update.size() +
" remove=" + remove.size());
if (notifications.size() == 0) {
String tag = "unseen." + group + "." + 0;
EntityLog.log(context, "Notify cancel tag=" + tag);
nm.cancel(tag, 1);
}
for (Long id : remove) {
String tag = "unseen." + group + "." + Math.abs(id);
EntityLog.log(context, "Notify cancel tag=" + tag + " id=" + id);
@ -4087,6 +4081,12 @@ class Core {
db.message().setMessageNotifying(Math.abs(id), 0);
}
if (notifications.size() == 0) {
String tag = "unseen." + group + "." + 0;
EntityLog.log(context, "Notify cancel tag=" + tag);
nm.cancel(tag, 1);
}
for (Long id : add) {
data.groupNotifying.get(group).add(id);
data.groupNotifying.get(group).remove(-id);