From 83bc6fb39cc0172fd8bfdf618cb5626393f048ce Mon Sep 17 00:00:00 2001 From: John Preston Date: Mon, 11 Feb 2019 15:51:16 +0300 Subject: [PATCH] Fix changelog dialogs list appearance. Fixes #5678, fixes #5674. --- Telegram/SourceFiles/history/history.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Telegram/SourceFiles/history/history.cpp b/Telegram/SourceFiles/history/history.cpp index 8d425b013..2d6e3fbd9 100644 --- a/Telegram/SourceFiles/history/history.cpp +++ b/Telegram/SourceFiles/history/history.cpp @@ -2086,8 +2086,13 @@ void History::markFullyLoaded() { } void History::setLastMessage(HistoryItem *item) { - if (_lastMessage && *_lastMessage == item) { - return; + if (_lastMessage) { + if (*_lastMessage == item) { + return; + } else if (!IsServerMsgId((*_lastMessage)->id) + && (*_lastMessage)->date() > item->date()) { + return; + } } _lastMessage = item; _chatListMessage = std::nullopt;