Open forum with topic by topic message link.

This commit is contained in:
John Preston 2024-11-05 11:37:15 +04:00
parent 8e5fec2fa8
commit ecf0eba0a5

View file

@ -568,8 +568,16 @@ void SessionNavigation::showPeerByLinkResolved(
const auto &replies = info.repliesInfo;
if (const auto threadId = std::get_if<ThreadId>(&replies)) {
const auto history = peer->owner().history(peer);
const auto controller = parentController();
if (const auto forum = peer->forum()) {
if (controller->windowId().hasChatsList()
&& !controller->adaptive().isOneColumn()) {
controller->showForum(forum);
}
}
showRepliesForMessage(
session().data().history(peer),
history,
threadId->id,
info.messageId,
params);