mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 22:46:10 +00:00
Create / move forum topics on new messages.
This commit is contained in:
@@ -263,10 +263,10 @@ Widget::Widget(
|
||||
const auto openSearchResult = !controller->selectingPeer()
|
||||
&& row.filteredRow;
|
||||
const auto history = row.key.history();
|
||||
if (const auto forumTopic = row.key.forumTopic()) {
|
||||
if (const auto topic = row.key.topic()) {
|
||||
controller->showRepliesForMessage(
|
||||
forumTopic->forum(),
|
||||
forumTopic->rootId());
|
||||
topic->forum(),
|
||||
topic->rootId());
|
||||
} else if (history && history->peer->isForum()) {
|
||||
controller->openForum(history->peer->asChannel());
|
||||
} else if (history) {
|
||||
|
Reference in New Issue
Block a user