async fn validate_history_visibility( services: &Services, room_id: &RoomId, json: &Raw<AnyStateEventContent>, ) -> Result