mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-30 22:16:14 +00:00
Use shared_ptr<Memento> for sections.
This commit is contained in:
@@ -843,7 +843,7 @@ object_ptr<Ui::RpWidget> SetupChannelMembers(
|
||||
lt_count_decimal,
|
||||
MembersCountValue(channel) | tr::to_count());
|
||||
auto membersCallback = [=] {
|
||||
controller->showSection(std::make_unique<Info::Memento>(
|
||||
controller->showSection(std::make_shared<Info::Memento>(
|
||||
channel,
|
||||
Section::Type::Members));
|
||||
};
|
||||
|
Reference in New Issue
Block a user