diff --git a/Telegram/SourceFiles/history.cpp b/Telegram/SourceFiles/history.cpp index 5379281fe7..fd63c79449 100644 --- a/Telegram/SourceFiles/history.cpp +++ b/Telegram/SourceFiles/history.cpp @@ -1859,12 +1859,14 @@ void History::setLastMessage(HistoryItem *msg) { } bool History::needUpdateInChatList() const { - if (inChatList(Dialogs::Mode::All) || isPinnedDialog()) { + if (inChatList(Dialogs::Mode::All)) { return true; } else if (peer->migrateTo()) { return false; + } else if (isPinnedDialog()) { + return true; } - return (!peer->isChannel() || peer->asChannel()->amIn()); + return !peer->isChannel() || peer->asChannel()->amIn(); } void History::setChatsListDate(const QDateTime &date) {