2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-03 16:15:13 +00:00

Fix unread badges for new dialogs.

This commit is contained in:
John Preston
2020-02-25 11:59:08 +04:00
parent 3e3696298f
commit b5ad3e7724

View File

@@ -2731,7 +2731,7 @@ void History::applyDialogFields(
clearFolder(); clearFolder();
} }
if (!skipUnreadUpdate() if (!skipUnreadUpdate()
&& maxInboxRead >= _inboxReadBefore.value_or(1)) { && maxInboxRead + 1 >= _inboxReadBefore.value_or(1)) {
setUnreadCount(unreadCount); setUnreadCount(unreadCount);
setInboxReadTill(maxInboxRead); setInboxReadTill(maxInboxRead);
} }