diff --git a/Telegram/SourceFiles/data/data_forum_topic.cpp b/Telegram/SourceFiles/data/data_forum_topic.cpp index 5925f303d..7b5391a19 100644 --- a/Telegram/SourceFiles/data/data_forum_topic.cpp +++ b/Telegram/SourceFiles/data/data_forum_topic.cpp @@ -767,6 +767,7 @@ void ForumTopic::maybeSetLastMessage(not_null item) { Expects(item->topicRootId() == _rootId); if (!_lastMessage + || !(*_lastMessage) || ((*_lastMessage)->date() < item->date()) || ((*_lastMessage)->date() == item->date() && (*_lastMessage)->id < item->id)) {