mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-07 23:53:58 +02:00
Fixed display of top bar suggestion while search in peer.
This commit is contained in:
parent
7e45283ba2
commit
6704886c6e
1 changed files with 5 additions and 2 deletions
|
@ -1037,15 +1037,18 @@ void Widget::setupTopBarSuggestions(not_null<Ui::VerticalLayout*> dialogs) {
|
||||||
_1 >= st::columnMinimalWidthLeft
|
_1 >= st::columnMinimalWidthLeft
|
||||||
) | rpl::distinct_until_changed(),
|
) | rpl::distinct_until_changed(),
|
||||||
_searchStateForTopBarSuggestion.events_starting_with(
|
_searchStateForTopBarSuggestion.events_starting_with(
|
||||||
!_searchState.query.isEmpty())
|
!_searchState.query.isEmpty()),
|
||||||
|
_jumpToDate->toggledValue()
|
||||||
) | rpl::map([=](
|
) | rpl::map([=](
|
||||||
FilterId id,
|
FilterId id,
|
||||||
bool folderOrForum,
|
bool folderOrForum,
|
||||||
bool wide,
|
bool wide,
|
||||||
bool search) {
|
bool search,
|
||||||
|
bool searchInPeer) {
|
||||||
return !folderOrForum
|
return !folderOrForum
|
||||||
&& wide
|
&& wide
|
||||||
&& !search
|
&& !search
|
||||||
|
&& !searchInPeer
|
||||||
&& (id == session->data().chatsFilters().defaultId());
|
&& (id == session->data().chatsFilters().defaultId());
|
||||||
});
|
});
|
||||||
return TopBarSuggestionValue(dialogs, session, std::move(on));
|
return TopBarSuggestionValue(dialogs, session, std::move(on));
|
||||||
|
|
Loading…
Add table
Reference in a new issue