mirror of
https://github.com/vale981/tdesktop
synced 2025-03-05 17:51:41 -05:00
parent
dbb7568b92
commit
83bc6fb39c
1 changed files with 7 additions and 2 deletions
|
@ -2086,8 +2086,13 @@ void History::markFullyLoaded() {
|
|||
}
|
||||
|
||||
void History::setLastMessage(HistoryItem *item) {
|
||||
if (_lastMessage && *_lastMessage == item) {
|
||||
return;
|
||||
if (_lastMessage) {
|
||||
if (*_lastMessage == item) {
|
||||
return;
|
||||
} else if (!IsServerMsgId((*_lastMessage)->id)
|
||||
&& (*_lastMessage)->date() > item->date()) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
_lastMessage = item;
|
||||
_chatListMessage = std::nullopt;
|
||||
|
|
Loading…
Add table
Reference in a new issue