Don't reopen forum on opening a link.

This commit is contained in:
John Preston 2024-11-18 16:23:19 +04:00
parent 20fadfef7f
commit 5c62ba0835

View file

@ -572,7 +572,8 @@ void SessionNavigation::showPeerByLinkResolved(
const auto controller = parentController();
if (const auto forum = peer->forum()) {
if (controller->windowId().hasChatsList()
&& !controller->adaptive().isOneColumn()) {
&& !controller->adaptive().isOneColumn()
&& controller->shownForum().current() != forum) {
controller->showForum(forum);
}
}