mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-30 14:17:45 +00:00
Fix closing forum by escape.
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user