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
1 changed files with 1 additions and 1 deletions

View File

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