mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Reset chosen filter on Escape.
This commit is contained in:
@@ -686,7 +686,11 @@ void Widget::escape() {
|
||||
controller()->closeFolder();
|
||||
} else if (!onCancelSearch()
|
||||
|| (!_searchInChat && !App::main()->selectingPeer())) {
|
||||
emit cancelled();
|
||||
if (controller()->activeChatEntryCurrent().key) {
|
||||
emit cancelled();
|
||||
} else if (controller()->activeChatsFilterCurrent()) {
|
||||
controller()->setActiveChatsFilter(FilterId(0));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user