Fix blocking users from recent actions
This commit is contained in:
parent
67f21f9b21
commit
242eb15167
1 changed files with 3 additions and 1 deletions
|
|
@ -1350,7 +1350,9 @@ void InnerWidget::suggestRestrictUser(not_null<UserData*> user) {
|
||||||
tr::lng_box_remove(tr::now),
|
tr::lng_box_remove(tr::now),
|
||||||
crl::guard(this, [=] {
|
crl::guard(this, [=] {
|
||||||
if (weak) {
|
if (weak) {
|
||||||
weak->restrictUser(user, currentRights, ChannelData::EmptyRestrictedRights(user));
|
weak->restrictUser(user,
|
||||||
|
currentRights,
|
||||||
|
ChannelData::KickedRestrictedRights(user));
|
||||||
}
|
}
|
||||||
if (*weakBox) {
|
if (*weakBox) {
|
||||||
(*weakBox)->closeBox();
|
(*weakBox)->closeBox();
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue