mirror of https://github.com/procxx/kepka.git
Show members list in the third column.
This commit is contained in:
parent
1a273702d3
commit
76f951e3e6
|
@ -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));
|
||||||
};
|
};
|
||||||
|
|
|
@ -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));
|
||||||
}));
|
}));
|
||||||
|
|
|
@ -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)));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue