Fix room ID check

This commit is contained in:
nexy7574 2025-06-10 23:00:09 +01:00 committed by Jacob Taylor
commit 1c207afeaf
2 changed files with 8 additions and 8 deletions

View file

@ -119,10 +119,7 @@ pub(super) async fn handle_outlier_pdu<'a>(
}
// The original create event must be in the auth events
if !matches!(
auth_events.get(&(StateEventType::RoomCreate, String::new().into())),
Some(_) | None
) {
if !auth_events.contains_key(&(StateEventType::RoomCreate, String::new().into())) {
return Err!(Request(InvalidParam("Incoming event refers to wrong create event.")));
}