Skip to main content

check_room_id

Function check_room_id 

Source
pub fn check_room_id(pdu: &Pdu, room_id: &RoomId) -> Result
Expand 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.