mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 22:46:10 +00:00
Correctly show global search with in-chat.
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user