2
0
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:
John Preston
2024-01-30 13:04:46 +04:00
parent 39b80c98c7
commit 3421b656db
7 changed files with 61 additions and 33 deletions

View File

@@ -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);