Reset chosen filter on Escape.

This commit is contained in:
John Preston 2020-03-23 14:08:54 +04:00
parent 8cdf8d5edc
commit aa88ee6d88
1 changed files with 5 additions and 1 deletions

View File

@ -686,7 +686,11 @@ void Widget::escape() {
controller()->closeFolder(); controller()->closeFolder();
} else if (!onCancelSearch() } else if (!onCancelSearch()
|| (!_searchInChat && !App::main()->selectingPeer())) { || (!_searchInChat && !App::main()->selectingPeer())) {
emit cancelled(); if (controller()->activeChatEntryCurrent().key) {
emit cancelled();
} else if (controller()->activeChatsFilterCurrent()) {
controller()->setActiveChatsFilter(FilterId(0));
}
} }
} }