2
0
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:
John Preston
2023-11-22 18:40:10 +04:00
parent 2df6729f2d
commit 4dbe5c0a0f
10 changed files with 84 additions and 19 deletions

View File

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