From 0a5589f869f14410c8f6e3d13c4adc66107d8ebc Mon Sep 17 00:00:00 2001 From: John Preston Date: Tue, 12 Mar 2019 16:08:41 +0400 Subject: [PATCH] Remove deleted chats with users from list. --- Telegram/SourceFiles/history/history.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/history/history.cpp b/Telegram/SourceFiles/history/history.cpp index 851d3a6a0c..0ae71cc5dc 100644 --- a/Telegram/SourceFiles/history/history.cpp +++ b/Telegram/SourceFiles/history/history.cpp @@ -2314,7 +2314,8 @@ bool History::shouldBeInChatList() const { || !lastMessageKnown() || (lastMessage() != nullptr); } - return true; + return !lastMessageKnown() + || (lastMessage() != nullptr); } bool History::toImportant() const {