Allowed expanding chats list by click on narrow top bar suggestion.

This commit is contained in:
23rd
2026-07-17 14:32:22 +03:00
parent 2bf3719033
commit 4129c567af
6 changed files with 100 additions and 62 deletions
@@ -1234,20 +1234,15 @@ void Widget::setupTopBarSuggestions() {
auto on = rpl::combine(
controller()->activeChatsFilter(),
_openedFolderOrForumChanges.events_starting_with(false),
widthValue() | rpl::map(
_1 >= st::columnMinimalWidthLeft
) | rpl::distinct_until_changed(),
_searchStateForTopBarSuggestion.events_starting_with(
!_searchState.query.isEmpty()),
_jumpToDate->toggledValue()
) | rpl::map([=](
FilterId id,
bool folderOrForum,
bool wide,
bool search,
bool searchInPeer) {
return !folderOrForum
&& wide
&& !search
&& !searchInPeer
&& (id == owner->chatsFilters().defaultId());