mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 14:38:15 +00:00
Correctly show global search with in-chat.
This commit is contained in:
@@ -3803,7 +3803,11 @@ void InnerWidget::searchReceived(
|
||||
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
|
||||
: Key(_openedForum->history());
|
||||
if (inject
|
||||
|
Reference in New Issue
Block a user