services(state_cache): use self instead of services()

Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
strawberry 2024-06-07 03:51:23 -04:00
parent 2230bc7339
commit 14ec41c211

View file

@ -408,9 +408,7 @@ impl Service {
})?
.flatten();
let mut servers: Vec<OwnedServerName> = services()
.rooms
.state_cache
let mut servers: Vec<OwnedServerName> = self
.room_members(room_id)
.filter_map(Result::ok)
.counts_by(|user| user.server_name().to_owned())