|
|
|
|
@ -412,10 +412,19 @@ pub async fn send_transaction_message_route<'a>(
@@ -412,10 +412,19 @@ pub async fn send_transaction_message_route<'a>(
|
|
|
|
|
"m.receipt" => {} |
|
|
|
|
_ => {} |
|
|
|
|
}, |
|
|
|
|
Err(_err) => continue, |
|
|
|
|
Err(_err) => { |
|
|
|
|
log::error!("{}", _err); |
|
|
|
|
continue; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
// TODO: For RoomVersion6 we must check that Raw<..> is canonical do we?
|
|
|
|
|
// SPEC:
|
|
|
|
|
// Servers MUST strictly enforce the JSON format specified in the appendices.
|
|
|
|
|
// This translates to a 400 M_BAD_JSON error on most endpoints, or discarding of
|
|
|
|
|
// events over federation. For example, the Federation API's /send endpoint would
|
|
|
|
|
// discard the event whereas the Client Server API's /send/{eventType} endpoint
|
|
|
|
|
// would return a M_BAD_JSON error.
|
|
|
|
|
let mut resolved_map = BTreeMap::new(); |
|
|
|
|
for pdu in &body.pdus { |
|
|
|
|
println!("LOOP"); |
|
|
|
|
|