From 83c5a67af5a2956bffa59fd15289b95b53c7b883 Mon Sep 17 00:00:00 2001 From: John Preston Date: Tue, 12 Feb 2019 18:59:52 +0300 Subject: [PATCH] Fix another crash in last message checking. Regression was introduced in 83bc6fb39c. --- Telegram/SourceFiles/history/history.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Telegram/SourceFiles/history/history.cpp b/Telegram/SourceFiles/history/history.cpp index f267ba0b36..8fb63beccd 100644 --- a/Telegram/SourceFiles/history/history.cpp +++ b/Telegram/SourceFiles/history/history.cpp @@ -2090,6 +2090,7 @@ void History::setLastMessage(HistoryItem *item) { if (*_lastMessage == item) { return; } else if (*_lastMessage + && item && !IsServerMsgId((*_lastMessage)->id) && (*_lastMessage)->date() > item->date()) { return;