mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-02 23:55:12 +00:00
Implement forwarding to topics.
This commit is contained in:
@@ -622,15 +622,29 @@ void SessionNavigation::showPeerInfo(
|
||||
|
||||
void SessionNavigation::showTopic(
|
||||
not_null<Data::ForumTopic*> topic,
|
||||
MsgId commentId,
|
||||
MsgId itemId,
|
||||
const SectionShow ¶ms) {
|
||||
return showRepliesForMessage(
|
||||
topic->history(),
|
||||
topic->rootId(),
|
||||
commentId,
|
||||
itemId,
|
||||
params);
|
||||
}
|
||||
|
||||
void SessionNavigation::showThread(
|
||||
not_null<Data::Thread*> thread,
|
||||
MsgId itemId,
|
||||
const SectionShow ¶ms) {
|
||||
if (const auto topic = thread->asTopic()) {
|
||||
showTopic(topic, itemId, params);
|
||||
} else {
|
||||
showPeerHistory(thread->asHistory(), params, itemId);
|
||||
}
|
||||
if (parentController()->activeChatCurrent().thread() == thread) {
|
||||
parentController()->content()->clearSelectingPeer();
|
||||
}
|
||||
}
|
||||
|
||||
void SessionNavigation::showPeerInfo(
|
||||
not_null<PeerData*> peer,
|
||||
const SectionShow ¶ms) {
|
||||
|
Reference in New Issue
Block a user