mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-06 15:13:57 +02:00
Open forum with topic by topic message link.
This commit is contained in:
parent
8e5fec2fa8
commit
ecf0eba0a5
1 changed files with 9 additions and 1 deletions
|
@ -568,8 +568,16 @@ void SessionNavigation::showPeerByLinkResolved(
|
||||||
|
|
||||||
const auto &replies = info.repliesInfo;
|
const auto &replies = info.repliesInfo;
|
||||||
if (const auto threadId = std::get_if<ThreadId>(&replies)) {
|
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(
|
showRepliesForMessage(
|
||||||
session().data().history(peer),
|
history,
|
||||||
threadId->id,
|
threadId->id,
|
||||||
info.messageId,
|
info.messageId,
|
||||||
params);
|
params);
|
||||||
|
|
Loading…
Add table
Reference in a new issue