mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Load similar channels correctly.
This commit is contained in:
@@ -3190,6 +3190,7 @@ void History::insertMessageToBlocks(not_null<HistoryItem*> item) {
|
||||
const auto lastDate = chatListTimeId();
|
||||
if (!lastDate || itemDate >= lastDate) {
|
||||
setLastMessage(item);
|
||||
owner().notifyHistoryChangeDelayed(this);
|
||||
}
|
||||
return;
|
||||
}
|
||||
@@ -3227,6 +3228,10 @@ void History::checkLocalMessages() {
|
||||
}
|
||||
}
|
||||
|
||||
HistoryItem *History::joinedMessageInstance() const {
|
||||
return _joinedMessage;
|
||||
}
|
||||
|
||||
void History::removeJoinedMessage() {
|
||||
if (_joinedMessage) {
|
||||
_joinedMessage->destroy();
|
||||
|
Reference in New Issue
Block a user