Fix closing forum by escape.

This commit is contained in:
John Preston 2022-12-02 13:48:30 +04:00
parent 819e1602ef
commit 037f2bcce2
1 changed files with 1 additions and 1 deletions

View File

@ -2542,7 +2542,7 @@ void MainWidget::handleHistoryBack() {
? rootPeer->owner().historyLoaded(rootPeer)
: nullptr;
const auto rootFolder = rootHistory ? rootHistory->folder() : nullptr;
if (openedForum && !rootPeer) {
if (openedForum && (!rootPeer || rootPeer->forum() != openedForum)) {
_controller->closeForum();
} else if (!openedFolder
|| rootFolder == openedFolder