mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 14:45:14 +00:00
Show blocked / restricted users to all admins.
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
Reference in New Issue
Block a user