2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-03 07:56:03 +00:00

Removed Ui::show from ShowSearchFromBox.

This commit is contained in:
23rd
2022-03-21 15:44:37 +03:00
committed by John Preston
parent 38abfacd88
commit 89ab23e70f
3 changed files with 14 additions and 7 deletions

View File

@@ -1537,7 +1537,7 @@ void Widget::showCalendar() {
void Widget::showSearchFrom() {
if (const auto peer = _searchInChat.peer()) {
const auto chat = _searchInChat;
ShowSearchFromBox(
auto box = SearchFromBox(
peer,
crl::guard(this, [=](not_null<PeerData*> from) {
Ui::hideLayer();
@@ -1545,6 +1545,9 @@ void Widget::showSearchFrom() {
applyFilterUpdate(true);
}),
crl::guard(this, [=] { _filter->setFocus(); }));
if (box) {
Window::Show(controller()).showBox(std::move(box));
}
}
}