Notify last 10 newest messages only

pull/184/head
M66B 4 years ago
parent b4d2f79709
commit e4b0599bd2

@ -3343,6 +3343,8 @@ class Core {
// This assumes the messages are properly ordered // This assumes the messages are properly ordered
if (groupMessages.get(group).size() < MAX_NOTIFICATION_COUNT) if (groupMessages.get(group).size() < MAX_NOTIFICATION_COUNT)
groupMessages.get(group).add(message); groupMessages.get(group).add(message);
else
db.message().setMessageUiIgnored(message.id, true);
} }
} }

Loading…
Cancel
Save