Hide community chat bars while searching

This commit is contained in:
John Preston
2026-07-10 00:47:21 +04:00
parent 69208ae951
commit 64b8f75b8e
5 changed files with 60 additions and 25 deletions
@@ -134,16 +134,13 @@ CommunityRequestableList::CommunityRequestableList(
chatsController->setDelegate(delegate);
_count = chatsController->countValue();
_count.value(
) | rpl::on_next([=](int count) {
setVisible(count > 0);
resizeToWidth(width());
}, lifetime());
_content->heightValue(
) | rpl::on_next([=] {
resizeToWidth(width());
}, lifetime());
hide();
}
CommunityRequestableList::~CommunityRequestableList() = default;