mirror of https://github.com/M66B/FairEmail.git
Conditionally update notifications
This commit is contained in:
parent
9f6fde7b16
commit
160899b9c2
|
@ -3170,12 +3170,16 @@ class Core {
|
|||
remove.remove(id);
|
||||
Log.i("Notify existing=" + id);
|
||||
} else {
|
||||
add.add(id);
|
||||
boolean existing = remove.contains(-id);
|
||||
if (existing) {
|
||||
update.add(id);
|
||||
if (message.content && notify_preview) {
|
||||
Log.i("Notify preview=" + id);
|
||||
add.add(id);
|
||||
update.add(id);
|
||||
}
|
||||
remove.remove(-id);
|
||||
}
|
||||
} else
|
||||
add.add(id);
|
||||
Log.i("Notify adding=" + id + " existing=" + existing);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue