services(state): use self instead of services()
Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
@@ -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());
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user