1
0
Fork 0
mirror of https://forgejo.ellis.link/continuwuation/continuwuity.git synced 2025-09-30 18:42:05 +00:00

fix(hydra): Idk maybe this will fix it

This commit is contained in:
nexy7574 2025-09-11 21:53:55 +01:00
parent 540cd28d44
commit a35f009d41
No known key found for this signature in database

View file

@ -195,7 +195,8 @@ async fn get_auth_chain_inner(
debug_error!(?event_id, ?e, "Could not find pdu mentioned in auth events");
},
| Ok(pdu) => {
if pdu.room_id.as_ref().is_some_and(|r| *r == *room_id) {
if let Some(claimed_room_id) = pdu.room_id.clone() {
if claimed_room_id != *room_id {
return Err!(Request(Forbidden(error!(
?event_id,
?room_id,
@ -203,6 +204,7 @@ async fn get_auth_chain_inner(
"auth event for incorrect room"
))));
}
}
for auth_event in &pdu.auth_events {
let sauthevent = self