Fixed removing notifications of deleted messages

This commit is contained in:
M66B
2019-09-18 11:11:49 +02:00
parent 685dfa313f
commit 1b1387686d

View File

@@ -2093,10 +2093,10 @@ class Core {
}
long group = (pro && message.accountNotify ? message.account : 0);
if (!groupMessages.containsKey(group)) {
if (!groupNotifying.containsKey(group))
groupNotifying.put(group, new ArrayList<Long>());
if (!groupMessages.containsKey(group))
groupMessages.put(group, new ArrayList<TupleMessageEx>());
}
if (message.notifying != 0) {
long id = message.id * message.notifying;
@@ -2184,8 +2184,6 @@ class Core {
}
}
}
groupNotifying.clear();
}
private static List<Notification> getNotificationUnseen(Context context, long group, List<TupleMessageEx> messages) {