de-global services for admin

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk committed 2024-07-27 08:26:42 +00:00
1 parent 9b20c6918f
commit 992c0a1e58
14 files changed
+208 -214

No files matched your search

+1 -1
View File
@@ -247,7 +247,7 @@ impl Service {
/// Check if a user is an admin
pub fn is_admin(&self, user_id: &UserId) -> Result<bool> {
if let Some(admin_room_id) = crate::admin::Service::get_admin_room()? {
if let Some(admin_room_id) = services().admin.get_admin_room()? {
services()
.rooms
.state_cache