From 3b3257727626e0b0909e619e4402fb80a1e544f2 Mon Sep 17 00:00:00 2001 From: Jonathan de Jong Date: Mon, 17 Jan 2022 12:08:24 +0100 Subject: [PATCH] federation-api: Support MSC3618 --- .../src/transactions/send_transaction_message/v1.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/ruma-federation-api/src/transactions/send_transaction_message/v1.rs b/crates/ruma-federation-api/src/transactions/send_transaction_message/v1.rs index f6876c3a..456cd51f 100644 --- a/crates/ruma-federation-api/src/transactions/send_transaction_message/v1.rs +++ b/crates/ruma-federation-api/src/transactions/send_transaction_message/v1.rs @@ -48,6 +48,8 @@ ruma_api! { #[derive(Default)] response: { /// Map of event IDs and response for each PDU given in the request. + // https://github.com/matrix-org/matrix-doc/pull/3618 makes returning `pdus` optional. + #[cfg_attr(feature = "unstable-pre-spec", serde(default))] #[serde(with = "crate::serde::pdu_process_response")] pub pdus: BTreeMap, Result<(), String>>, }