mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-08-06 11:52:58 +00:00
Hide community bot chats when community is collapsed
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user