mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-07 15:43:55 +02:00
Correctly show global search with in-chat.
This commit is contained in:
parent
00a0e595ff
commit
9075a521f0
1 changed files with 5 additions and 1 deletions
|
@ -3803,7 +3803,11 @@ void InnerWidget::searchReceived(
|
||||||
clearPreviewResults();
|
clearPreviewResults();
|
||||||
}
|
}
|
||||||
|
|
||||||
const auto key = (!_openedForum || _searchState.inChat.topic())
|
const auto globalSearch = (_searchState.tab == ChatSearchTab::MyMessages)
|
||||||
|
|| (_searchState.tab == ChatSearchTab::PublicPosts);
|
||||||
|
const auto key = globalSearch
|
||||||
|
? Key()
|
||||||
|
: (!_openedForum || _searchState.inChat.topic())
|
||||||
? _searchState.inChat
|
? _searchState.inChat
|
||||||
: Key(_openedForum->history());
|
: Key(_openedForum->history());
|
||||||
if (inject
|
if (inject
|
||||||
|
|
Loading…
Add table
Reference in a new issue