WIP: bump ruma to be19d07d850a69a5872dcc38f15a0bafb06828e5 (stateres refactor #2)

This commit is contained in:
Olivia Lee 2025-07-13 21:35:37 -07:00
parent 3d7d28fba7
commit a0b846baa3
No known key found for this signature in database
GPG key ID: 54D568A15B9CD1F9
3 changed files with 27 additions and 13 deletions

View file

@ -1048,7 +1048,21 @@ async fn join_room_by_id_helper(
}
info!("Running send_join auth check");
state_res::event_auth::auth_check(
state_res::check_state_independent_auth_rules(
&room_version_rules.authorization,
&parsed_join_pdu,
|event_id|
services()
.rooms
.timeline
.get_pdu(event_id)
.ok()?
)
.map_err(|error| {
warn!(%error, "Auth check failed");
Error::BadRequest(ErrorKind::InvalidParam, "Auth check failed")
})?;
state_res::check_state_dependent_auth_rules(
&room_version_rules.authorization,
&parsed_join_pdu,
|k, s| {