mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-15 13:47:05 +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) {
|
||||
_controller->parentController()->showPeerHistory(
|
||||
row->peer(),
|
||||
Window::SectionShow::Way::Forward);
|
||||
const auto peer = row->peer();
|
||||
const auto controller = _controller->parentController();
|
||||
if (const auto forum = peer->forum()) {
|
||||
controller->showForum(forum);
|
||||
} else {
|
||||
controller->showPeerHistory(
|
||||
peer,
|
||||
Window::SectionShow::Way::Forward);
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
|
Loading…
Add table
Reference in a new issue