feat: Move PDU validation out of parsing and into check 1

This commit is contained in:
timedout committed 2026-07-11 17:27:42 +01:00
1 parent 838764b0ac
commit c34d1fe76e
5 files changed
+62 -41

No files matched your search

@@ -56,7 +56,11 @@ impl super::Service {
continue;
},
};
if let Err(e) = Self::pdu_format_check_1(&auth_pdu_json) {
if let Err(e) = Self::pdu_format_check_1(
&auth_pdu_json,
room_version_rules,
&create_event.event_id().to_owned(),
) {
// drop this PDU
warn!(%auth_event_id, error=?e, "Dropping auth chain event as it violates the room event format");
continue;