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

This commit is contained in:
timedout committed 2026-07-10 20:50:22 +01:00
1 parent 0f90072caa
commit 11799fa315
1 file changed
+2 -5
@@ -150,10 +150,7 @@ impl super::Service {
},
| 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 @@ impl super::Service {
)
.await?
{
self.services.pdu_metadata.mark_event_rejected(&event_id);
self.reject_and_persist(&event_id, &pdu.to_canonical_object());
}
}