Show members list in the third column.

This commit is contained in:
John Preston 2017-12-04 15:45:15 +04:00
parent 1a273702d3
commit 76f951e3e6
3 changed files with 3 additions and 3 deletions

View File

@ -729,7 +729,7 @@ object_ptr<Ui::RpWidget> SetupChannelMembers(
return lng_chat_status_members(lt_count, count); return lng_chat_status_members(lt_count, count);
}); });
auto membersCallback = [controller, channel] { auto membersCallback = [controller, channel] {
controller->window()->showSection(Info::Memento( controller->showSection(Info::Memento(
channel->id, channel->id,
Section::Type::Members)); Section::Type::Members));
}; };

View File

@ -382,7 +382,7 @@ void Cover::refreshStatusText() {
_status->setRichText(statusText); _status->setRichText(statusText);
if (hasMembersLink) { if (hasMembersLink) {
_status->setLink(1, MakeShared<LambdaClickHandler>([=] { _status->setLink(1, MakeShared<LambdaClickHandler>([=] {
_controller->window()->showSection(Info::Memento( _controller->showSection(Info::Memento(
_controller->peerId(), _controller->peerId(),
Section::Type::Members)); Section::Type::Members));
})); }));

View File

@ -187,7 +187,7 @@ void Members::setupButtons() {
contentMemento->setState(saveState()); contentMemento->setState(saveState());
auto mementoStack = std::vector<std::unique_ptr<ContentMemento>>(); auto mementoStack = std::vector<std::unique_ptr<ContentMemento>>();
mementoStack.push_back(std::move(contentMemento)); mementoStack.push_back(std::move(contentMemento));
_controller->window()->showSection( _controller->showSection(
Info::Memento(std::move(mementoStack))); Info::Memento(std::move(mementoStack)));
}); });