pub(super) async fn check_room_member<Fetch, Pdu>(
room_member_event: &RoomMemberEvent<Pdu>,
rules: &AuthorizationRules,
room_create_event: &RoomCreateEvent<Fetch::Pdu>,
fetch_state: Fetch,
) -> Resultwhere
Fetch: FetchState,
Pdu: Event,Expand description
Check whether the given event passes the m.room.member authorization
rules.
This assumes that ruma_signatures::verify_event() was called previously,
as some authorization rules depend on the signatures being valid on the
event.