mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-01-14 19:21:30 +00:00
Show blocked / restricted users to all admins.
This commit is contained in:
parent
1b649299ff
commit
8fe56b9a7d
@ -141,7 +141,7 @@ void SettingsWidget::refreshManageAdminsButton() {
|
||||
void SettingsWidget::refreshManageBannedUsersButton() {
|
||||
auto hasManageBannedUsers = [this] {
|
||||
if (auto channel = peer()->asMegagroup()) {
|
||||
return channel->canBanMembers() && (channel->kickedCount() > 0);
|
||||
return channel->hasAdminRights() && (channel->kickedCount() > 0);
|
||||
}
|
||||
return false;
|
||||
};
|
||||
@ -154,7 +154,7 @@ void SettingsWidget::refreshManageBannedUsersButton() {
|
||||
|
||||
auto hasManageRestrictedUsers = [this] {
|
||||
if (auto channel = peer()->asMegagroup()) {
|
||||
return channel->canBanMembers() && (channel->restrictedCount() > 0);
|
||||
return channel->hasAdminRights() && (channel->restrictedCount() > 0);
|
||||
}
|
||||
return false;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user