2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Single entry point to search in chat.

This commit is contained in:
John Preston
2023-01-18 15:17:32 +04:00
parent 2c75fe033c
commit f8e76f1b84
6 changed files with 23 additions and 39 deletions

View File

@@ -2652,16 +2652,7 @@ int MainWidget::backgroundFromY() const {
}
void MainWidget::searchInChat(Dialogs::Key chat) {
// #TODO windows
if (!_dialogs) {
return;
}
_dialogs->searchInChat(chat);
if (isOneColumn()) {
_controller->clearSectionStack();
} else {
_dialogs->setInnerFocus();
}
searchMessages(QString(), chat);
}
bool MainWidget::contentOverlapped(const QRect &globalRect) {