Fix blocking users from recent actions

This commit is contained in:
Eric Kotato 2021-03-31 03:07:32 +03:00
parent 67f21f9b21
commit 242eb15167

View file

@ -1350,7 +1350,9 @@ void InnerWidget::suggestRestrictUser(not_null<UserData*> user) {
tr::lng_box_remove(tr::now),
crl::guard(this, [=] {
if (weak) {
weak->restrictUser(user, currentRights, ChannelData::EmptyRestrictedRights(user));
weak->restrictUser(user,
currentRights,
ChannelData::KickedRestrictedRights(user));
}
if (*weakBox) {
(*weakBox)->closeBox();