Remove redundant service.users.is_admin

This commit is contained in:
dasha_uwu
2026-02-04 19:11:03 +05:00
committed by Jason Volk
parent e59dcb3f3c
commit e1dc52200c
7 changed files with 17 additions and 14 deletions

View File

@@ -167,7 +167,7 @@ pub(super) async fn deactivate_all(&self, no_leave_rooms: bool, force: bool) ->
continue;
},
| Ok(user_id) => {
if self.services.users.is_admin(&user_id).await && !force {
if self.services.admin.user_is_admin(&user_id).await && !force {
self.services
.admin
.send_text(&format!(