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:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user