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

@@ -175,7 +175,7 @@ void ChannelData::setFlags(ChannelDataFlags which) {
session().changes().peerUpdated(this, UpdateFlag::Migration);
}
}
if (diff & (Flag::Forum | Flag::CallNotEmpty)) {
if (diff & (Flag::Forum | Flag::CallNotEmpty | Flag::SimilarExpanded)) {
if (const auto history = this->owner().historyLoaded(this)) {
if (diff & Flag::CallNotEmpty) {
history->updateChatListEntry();
@@ -189,6 +189,11 @@ void ChannelData::setFlags(ChannelDataFlags which) {
}
}
}
if (diff & Flag::SimilarExpanded) {
if (const auto item = history->joinedMessageInstance()) {
history->owner().requestItemResize(item);
}
}
}
}
if (const auto raw = taken.get()) {