Hide community bot chats when community is collapsed

This commit is contained in:
John Preston
2026-07-08 01:04:26 +04:00
parent 879343c710
commit e5a390d58e
8 changed files with 59 additions and 33 deletions
+8
View File
@@ -323,7 +323,15 @@ ChannelId UserData::linkedCommunityId() const {
}
void UserData::setLinkedCommunityId(ChannelId id) {
if (_linkedCommunityId == id) {
return;
}
_linkedCommunityId = id;
if (const auto history = owner().historyLoaded(this)) {
history->updateCommunityRegistration();
history->updateChatListSortPosition();
history->updateChatListExistence();
}
}
UserId UserData::botManagerId() const {