mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
Allow forwarding polls to monoforums.
This commit is contained in:
@@ -860,7 +860,10 @@ void Widget::chosenRow(const ChosenRow &row) {
|
||||
|
||||
const auto history = row.key.history();
|
||||
const auto topicJump = history
|
||||
? history->peer->forumTopicFor(row.message.fullId.msg)
|
||||
? history->peer->forumTopicFor(row.topicJumpRootId)
|
||||
: nullptr;
|
||||
const auto sublistJump = history
|
||||
? history->peer->monoforumSublistFor(row.sublistJumpPeerId)
|
||||
: nullptr;
|
||||
|
||||
if (topicJump) {
|
||||
@@ -880,6 +883,16 @@ void Widget::chosenRow(const ChosenRow &row) {
|
||||
Window::SectionShow::Way::ClearStack);
|
||||
}
|
||||
return;
|
||||
} else if (sublistJump) {
|
||||
if (row.newWindow) {
|
||||
controller()->showInNewWindow(Window::SeparateId(sublistJump));
|
||||
} else {
|
||||
controller()->showThread(
|
||||
sublistJump,
|
||||
ShowAtUnreadMsgId,
|
||||
Window::SectionShow::Way::ClearStack);
|
||||
}
|
||||
return;
|
||||
} else if (const auto topic = row.key.topic()) {
|
||||
auto params = Window::SectionShow(
|
||||
Window::SectionShow::Way::ClearStack);
|
||||
|
||||
Reference in New Issue
Block a user