Fixed Escape shortcut for opened archived forums.

This commit is contained in:
23rd 2022-11-07 14:15:58 +03:00
parent 9276f3dab8
commit c320917069
1 changed files with 3 additions and 3 deletions

View File

@ -1102,10 +1102,10 @@ void Widget::animationCallback() {
void Widget::escape() { void Widget::escape() {
if (!cancelSearch()) { if (!cancelSearch()) {
if (controller()->openedFolder().current()) { if (controller()->openedForum().current()) {
controller()->closeFolder();
} else if (controller()->openedForum().current()) {
controller()->closeForum(); controller()->closeForum();
} else if (controller()->openedFolder().current()) {
controller()->closeFolder();
} else if (controller()->activeChatEntryCurrent().key) { } else if (controller()->activeChatEntryCurrent().key) {
controller()->content()->dialogsCancelled(); controller()->content()->dialogsCancelled();
} else { } else {