mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Don't reopen forum on opening a link.
This commit is contained in:
parent
20fadfef7f
commit
5c62ba0835
1 changed files with 2 additions and 1 deletions
|
@ -572,7 +572,8 @@ void SessionNavigation::showPeerByLinkResolved(
|
||||||
const auto controller = parentController();
|
const auto controller = parentController();
|
||||||
if (const auto forum = peer->forum()) {
|
if (const auto forum = peer->forum()) {
|
||||||
if (controller->windowId().hasChatsList()
|
if (controller->windowId().hasChatsList()
|
||||||
&& !controller->adaptive().isOneColumn()) {
|
&& !controller->adaptive().isOneColumn()
|
||||||
|
&& controller->shownForum().current() != forum) {
|
||||||
controller->showForum(forum);
|
controller->showForum(forum);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue