mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-08-06 11:52:58 +00:00
Allowed expanding chats list by click on narrow top bar suggestion.
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user