mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-08-09 21:23:43 +00:00
Hide community chat bars while searching
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user