diff --git a/src/service/rooms/state/mod.rs b/src/service/rooms/state/mod.rs index 5a05b162..8a32d9ca 100644 --- a/src/service/rooms/state/mod.rs +++ b/src/service/rooms/state/mod.rs @@ -355,7 +355,7 @@ impl Service { &self, room_id: &RoomId, kind: &TimelineEventType, sender: &UserId, state_key: Option<&str>, content: &serde_json::value::RawValue, ) -> Result>> { - let Some(shortstatehash) = services().rooms.state.get_room_shortstatehash(room_id)? else { + let Some(shortstatehash) = self.get_room_shortstatehash(room_id)? else { return Ok(HashMap::new()); };