pub fn check_room_id(pdu: &Pdu, room_id: &RoomId) -> ResultExpand description
Verifies that a parsed PDU belongs to the expected room.
The comparison uses the room ID retained in the stored representation. A mismatch is reported as an invalid request parameter.