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:
@@ -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()) {
|
||||
|
Reference in New Issue
Block a user