mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-07 15:43:55 +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
|
||||
) | rpl::distinct_until_changed(),
|
||||
_searchStateForTopBarSuggestion.events_starting_with(
|
||||
!_searchState.query.isEmpty())
|
||||
!_searchState.query.isEmpty()),
|
||||
_jumpToDate->toggledValue()
|
||||
) | rpl::map([=](
|
||||
FilterId id,
|
||||
bool folderOrForum,
|
||||
bool wide,
|
||||
bool search) {
|
||||
bool search,
|
||||
bool searchInPeer) {
|
||||
return !folderOrForum
|
||||
&& wide
|
||||
&& !search
|
||||
&& !searchInPeer
|
||||
&& (id == session->data().chatsFilters().defaultId());
|
||||
});
|
||||
return TopBarSuggestionValue(dialogs, session, std::move(on));
|
||||
|
|
Loading…
Add table
Reference in a new issue