2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-04 16:45:12 +00:00

Cancel search in chat doesn't reset search query.

This commit is contained in:
John Preston
2020-11-05 14:02:27 +03:00
parent d09ece4203
commit ddbd36e446

View File

@@ -1795,10 +1795,7 @@ void Widget::onCancelSearchInChat() {
} }
setSearchInChat(Key()); setSearchInChat(Key());
} }
_inner->clearFilter(); applyFilterUpdate(true);
_filter->clear();
_filter->updatePlaceholder();
applyFilterUpdate();
if (!Adaptive::OneColumn() && !controller()->selectingPeer()) { if (!Adaptive::OneColumn() && !controller()->selectingPeer()) {
emit cancelled(); emit cancelled();
} }