Fix another crash in last message checking.

Regression was introduced in 83bc6fb39c.
This commit is contained in:
John Preston 2019-02-12 18:59:52 +03:00
parent c9ad2cd1aa
commit 83c5a67af5

View File

@ -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;