Possible fix for crash on Permissions click in profile
This commit is contained in:
parent
d104608fbf
commit
c8b0209e8e
1 changed files with 2 additions and 1 deletions
|
|
@ -951,11 +951,12 @@ void ManageFiller::addPeerPermissions(
|
|||
}();
|
||||
|
||||
if (canEditPermissions) {
|
||||
const auto controller = _controller;
|
||||
auto button = AddActionButton(
|
||||
_wrap,
|
||||
tr::lng_manage_peer_permissions(),
|
||||
rpl::single(true),
|
||||
[=] { ShowEditPermissions(_controller, peer); }
|
||||
[=] { ShowEditPermissions(controller, peer); }
|
||||
);
|
||||
object_ptr<FloatingIcon>(
|
||||
button,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue