Handle clear notifying on boot/update

This commit is contained in:
M66B 2021-06-19 18:39:42 +02:00
parent 3baa60dc3e
commit 7018723618
1 changed files with 5 additions and 1 deletions

View File

@ -3922,7 +3922,11 @@ class Core {
if (!groupMessages.containsKey(group))
groupMessages.put(group, new ArrayList<>());
if (message.notifying != 0) {
if (message.notifying == 0) {
// Handle clear notifying on boot/update
data.groupNotifying.get(group).remove(message.id);
data.groupNotifying.get(group).remove(-message.id);
} else {
long id = message.id * message.notifying;
if (!data.groupNotifying.get(group).contains(id) &&
!data.groupNotifying.get(group).contains(-id)) {