mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-01 06:55:58 +00:00
Open forum with topic by topic message link.
This commit is contained in:
@@ -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);
|
||||||
|
Reference in New Issue
Block a user