fn invite_permitted(
user_id: &UserId,
room_id: &RoomId,
filter: &InviteFilter,
invite_state: &[Raw<AnyStrippedStateEvent>],
) -> boolExpand description
invite_permitted_room for a room whose stripped state is in hand.
Callers walking stored invites already hold the state and take this form,
which spares them the load the room-keyed form pays per room. room_id
names the affected row in the sender-less diagnostic and does not enter the
verdict. That diagnostic stays at debug on a release build deliberately,
since the condition repeats for every sync an affected user makes.