mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 14:38:15 +00:00
Support group-like channels.
This commit is contained in:
@@ -184,7 +184,11 @@ void ChannelData::setFlags(ChannelDataFlags which) {
|
||||
});
|
||||
}
|
||||
}
|
||||
if (diff & (Flag::Forum | Flag::CallNotEmpty | Flag::SimilarExpanded)) {
|
||||
if (diff & (Flag::Forum
|
||||
| Flag::CallNotEmpty
|
||||
| Flag::SimilarExpanded
|
||||
| Flag::Signatures
|
||||
| Flag::SignatureProfiles)) {
|
||||
if (const auto history = this->owner().historyLoaded(this)) {
|
||||
if (diff & Flag::CallNotEmpty) {
|
||||
history->updateChatListEntry();
|
||||
@@ -203,6 +207,12 @@ void ChannelData::setFlags(ChannelDataFlags which) {
|
||||
history->owner().requestItemResize(item);
|
||||
}
|
||||
}
|
||||
if (diff & Flag::SignatureProfiles) {
|
||||
history->forceFullResize();
|
||||
}
|
||||
if (diff & (Flag::Signatures | Flag::SignatureProfiles)) {
|
||||
session().changes().peerUpdated(this, UpdateFlag::Rights);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (const auto raw = taken.get()) {
|
||||
|
Reference in New Issue
Block a user