mirror of
https://gitlab.com/famedly/conduit.git
synced 2024-12-27 12:14:33 +01:00
fix: ignore unparsable pdus in /send
This commit is contained in:
parent
d39003ffc0
commit
2aa0a2474b
1 changed files with 8 additions and 1 deletions
|
@ -688,7 +688,14 @@ pub async fn send_transaction_message_route(
|
|||
// let mut auth_cache = EventMap::new();
|
||||
|
||||
for pdu in &body.pdus {
|
||||
let (event_id, value, room_id) = parse_incoming_pdu(&pdu)?;
|
||||
let r = parse_incoming_pdu(&pdu);
|
||||
let (event_id, value, room_id) = match r {
|
||||
Ok(t) => t,
|
||||
Err(e) => {
|
||||
warn!("Could not parse pdu: {e}");
|
||||
continue;
|
||||
}
|
||||
};
|
||||
// We do not add the event_id field to the pdu here because of signature and hashes checks
|
||||
|
||||
services()
|
||||
|
|
Loading…
Reference in a new issue