Prevent reappearing notifications

This commit is contained in:
M66B 2023-03-21 18:26:30 +01:00
parent 7c0d50203a
commit a19214c033
1 changed files with 5 additions and 0 deletions

View File

@ -5291,6 +5291,11 @@ class Core {
remove.remove(id);
Log.i("Notify existing=" + id);
} else {
EntityMessage msg = db.message().getMessage(message.id);
if (msg == null || msg.ui_ignored) {
Log.i("Notify skip id=" + message.id + " msg=" + (msg != null));
continue;
}
boolean existing = remove.contains(-id);
if (existing) {
if (message.content && notify_preview) {