Fixed new message notifications with summary only notification

pull/194/head
M66B 5 years ago
parent 25d8507c20
commit 48ff365e29

@ -3872,13 +3872,11 @@ class Core {
} }
} }
Integer prev = data.newMessages.get(group); Integer prev = prefs.getInt("new_messages." + group, 0);
if (prev == null)
prev = 0;
Integer current = newMessages.get(group); Integer current = newMessages.get(group);
if (current == null) if (current == null)
current = 0; current = 0;
data.newMessages.put(group, current); prefs.edit().putInt("new_messages." + group, current).apply();
if (prev.equals(current) && if (prev.equals(current) &&
remove.size() + add.size() == 0) { remove.size() + add.size() == 0) {
@ -4872,7 +4870,6 @@ class Core {
} }
static class NotificationData { static class NotificationData {
private Map<Long, Integer> newMessages = new HashMap<>();
private Map<Long, List<Long>> groupNotifying = new HashMap<>(); private Map<Long, List<Long>> groupNotifying = new HashMap<>();
NotificationData(Context context) { NotificationData(Context context) {

Loading…
Cancel
Save