From 76f951e3e69a39ca006df540c09f3c30d10660f1 Mon Sep 17 00:00:00 2001 From: John Preston Date: Mon, 4 Dec 2017 15:45:15 +0400 Subject: [PATCH] Show members list in the third column. --- Telegram/SourceFiles/info/profile/info_profile_actions.cpp | 2 +- Telegram/SourceFiles/info/profile/info_profile_cover.cpp | 2 +- Telegram/SourceFiles/info/profile/info_profile_members.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Telegram/SourceFiles/info/profile/info_profile_actions.cpp b/Telegram/SourceFiles/info/profile/info_profile_actions.cpp index 7372b2113..ba18d3762 100644 --- a/Telegram/SourceFiles/info/profile/info_profile_actions.cpp +++ b/Telegram/SourceFiles/info/profile/info_profile_actions.cpp @@ -729,7 +729,7 @@ object_ptr SetupChannelMembers( return lng_chat_status_members(lt_count, count); }); auto membersCallback = [controller, channel] { - controller->window()->showSection(Info::Memento( + controller->showSection(Info::Memento( channel->id, Section::Type::Members)); }; diff --git a/Telegram/SourceFiles/info/profile/info_profile_cover.cpp b/Telegram/SourceFiles/info/profile/info_profile_cover.cpp index 8d7234b24..2a277963e 100644 --- a/Telegram/SourceFiles/info/profile/info_profile_cover.cpp +++ b/Telegram/SourceFiles/info/profile/info_profile_cover.cpp @@ -382,7 +382,7 @@ void Cover::refreshStatusText() { _status->setRichText(statusText); if (hasMembersLink) { _status->setLink(1, MakeShared([=] { - _controller->window()->showSection(Info::Memento( + _controller->showSection(Info::Memento( _controller->peerId(), Section::Type::Members)); })); diff --git a/Telegram/SourceFiles/info/profile/info_profile_members.cpp b/Telegram/SourceFiles/info/profile/info_profile_members.cpp index 10c5717bc..11a0d3bb7 100644 --- a/Telegram/SourceFiles/info/profile/info_profile_members.cpp +++ b/Telegram/SourceFiles/info/profile/info_profile_members.cpp @@ -187,7 +187,7 @@ void Members::setupButtons() { contentMemento->setState(saveState()); auto mementoStack = std::vector>(); mementoStack.push_back(std::move(contentMemento)); - _controller->window()->showSection( + _controller->showSection( Info::Memento(std::move(mementoStack))); });