From 6f885fb6ccf75ef06c95ee7ef67c71f94726e0c0 Mon Sep 17 00:00:00 2001 From: John Preston Date: Thu, 2 May 2019 15:04:14 +0400 Subject: [PATCH] Fix creating dialog rows for new groups. --- Telegram/SourceFiles/history/history.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Telegram/SourceFiles/history/history.cpp b/Telegram/SourceFiles/history/history.cpp index e5b701f69a..45a1e979d9 100644 --- a/Telegram/SourceFiles/history/history.cpp +++ b/Telegram/SourceFiles/history/history.cpp @@ -628,9 +628,6 @@ HistoryItem *History::addNewMessage( setLastMessage(item); if (type == NewMessageType::Unread) { newItemAdded(item); - if (!folderKnown()) { - session().api().requestDialogEntry(this); - } } return item; } @@ -1241,6 +1238,9 @@ void History::newItemAdded(not_null item) { } else { inboxRead(item); } + if (!folderKnown()) { + session().api().requestDialogEntry(this); + } } HistoryBlock *History::prepareBlockForAddingItem() {