async fn allowed_to_send_state_event( services: &Services, room_id: &RoomId, event_type: &StateEventType, state_key: &str, json: &Raw<AnyStateEventContent>, ) -> Result