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

Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
strawberry 2024-06-07 03:50:16 -04:00
parent 0ebabba971
commit 2230bc7339

View file

@ -355,7 +355,7 @@ impl Service {
&self, room_id: &RoomId, kind: &TimelineEventType, sender: &UserId, state_key: Option<&str>, &self, room_id: &RoomId, kind: &TimelineEventType, sender: &UserId, state_key: Option<&str>,
content: &serde_json::value::RawValue, content: &serde_json::value::RawValue,
) -> Result<StateMap<Arc<PduEvent>>> { ) -> Result<StateMap<Arc<PduEvent>>> {
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()); return Ok(HashMap::new());
}; };