fix: Don't reject auth events when they're innocent in auth chain response

This commit is contained in:
timedout
2026-07-11 17:27:42 +01:00
parent 318d2b205a
commit ec9efbada5
@@ -150,10 +150,7 @@ async fn authorise_remote_auth_chain<Pdu>(
},
| hash_map::Entry::Occupied(_) => {
// Duplicate auth events by key are not allowed.
self.services
.pdu_metadata
.mark_event_rejected(auth_event_id);
self.services.pdu_metadata.mark_event_rejected(&event_id);
self.reject_and_persist(&event_id, &pdu.to_canonical_object());
continue 'outer;
},
}
@@ -167,7 +164,7 @@ async fn authorise_remote_auth_chain<Pdu>(
)
.await?
{
self.services.pdu_metadata.mark_event_rejected(&event_id);
self.reject_and_persist(&event_id, &pdu.to_canonical_object());
}
}