2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Replaced kick button with admin rank in list of members.

This commit is contained in:
23rd
2022-03-29 19:43:33 +03:00
committed by John Preston
parent 221ef74150
commit d7bf9e285c
4 changed files with 42 additions and 23 deletions

View File

@@ -1930,7 +1930,8 @@ auto ParticipantsBoxController::computeType(
: (user && _additional.adminRights(user).has_value())
? Rights::Admin
: Rights::Normal;
result.canRemove = _additional.canRemoveParticipant(participant);
// result.canRemove = _additional.canRemoveParticipant(participant);
result.adminRank = user ? _additional.adminRank(user) : QString();
return result;
}