2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

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);
});
auto membersCallback = [controller, channel] {
controller->window()->showSection(Info::Memento(
controller->showSection(Info::Memento(
channel->id,
Section::Type::Members));
};

View File

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

View File

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