mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Open forum from common groups.
This commit is contained in:
parent
89c35e8512
commit
8e5fec2fa8
1 changed files with 9 additions and 3 deletions
|
@ -177,9 +177,15 @@ void ListController::restoreState(
|
||||||
}
|
}
|
||||||
|
|
||||||
void ListController::rowClicked(not_null<PeerListRow*> row) {
|
void ListController::rowClicked(not_null<PeerListRow*> row) {
|
||||||
_controller->parentController()->showPeerHistory(
|
const auto peer = row->peer();
|
||||||
row->peer(),
|
const auto controller = _controller->parentController();
|
||||||
Window::SectionShow::Way::Forward);
|
if (const auto forum = peer->forum()) {
|
||||||
|
controller->showForum(forum);
|
||||||
|
} else {
|
||||||
|
controller->showPeerHistory(
|
||||||
|
peer,
|
||||||
|
Window::SectionShow::Way::Forward);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace
|
} // namespace
|
||||||
|
|
Loading…
Add table
Reference in a new issue