mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-19 00:31:24 +01:00
WIP: bump ruma to be19d07d850a69a5872dcc38f15a0bafb06828e5 (stateres refactor #2)
This commit is contained in:
parent
3d7d28fba7
commit
a0b846baa3
3 changed files with 27 additions and 13 deletions
|
|
@ -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| {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue