From b5ad3e7724d2c33935ff50622c020f13bd17a241 Mon Sep 17 00:00:00 2001 From: John Preston Date: Tue, 25 Feb 2020 11:59:08 +0400 Subject: [PATCH] Fix unread badges for new dialogs. --- Telegram/SourceFiles/history/history.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/history/history.cpp b/Telegram/SourceFiles/history/history.cpp index bbe4cbd933..7b0767027b 100644 --- a/Telegram/SourceFiles/history/history.cpp +++ b/Telegram/SourceFiles/history/history.cpp @@ -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); }