mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 14:38:15 +00:00
Fix another crash in last message checking.
Regression was introduced in 83bc6fb39c
.
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user