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:
parent
648f453553
commit
e11c2dd1f1
1 changed files with 6 additions and 6 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue