Use self instead of going through services()

This commit is contained in:
Lambda 2024-09-01 11:35:02 +00:00
parent f52cf53931
commit 341f4213d0
8 changed files with 26 additions and 60 deletions

View file

@ -397,8 +397,7 @@ impl Service {
state_key: Option<&str>,
content: &serde_json::value::RawValue,
) -> Result<StateMap<Arc<PduEvent>>> {
let Some(shortstatehash) =
services().rooms.state.get_room_shortstatehash(room_id)?
let Some(shortstatehash) = self.get_room_shortstatehash(room_id)?
else {
return Ok(HashMap::new());
};