mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Fix saved tag click in separate window messages.
This commit is contained in:
@@ -727,6 +727,10 @@ void MainWidget::searchMessages(const QString &query, Dialogs::Key inChat) {
|
||||
_dialogs->setInnerFocus();
|
||||
}
|
||||
} else {
|
||||
if (!Data::SearchTagsFromQuery(query).empty()) {
|
||||
inChat = controller()->session().data().history(
|
||||
controller()->session().user());
|
||||
}
|
||||
const auto searchIn = [&](not_null<Window::Controller*> window) {
|
||||
if (const auto controller = window->sessionController()) {
|
||||
controller->content()->searchMessages(query, inChat);
|
||||
|
Reference in New Issue
Block a user