Conditionally update notifications

This commit is contained in:
M66B 2020-07-05 12:47:10 +02:00
parent 9f6fde7b16
commit 160899b9c2
1 changed files with 7 additions and 3 deletions

View File

@ -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);
}
}