From 5a65634a28cd007416fa2d4b665ab60e5d46d920 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20K=C3=B6sters?= Date: Thu, 10 Dec 2020 15:42:14 +0100 Subject: [PATCH] federation-api: Make pdus of transactions optional under `unstable-pre-spec` --- .../src/transactions/send_transaction_message/v1.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/ruma-federation-api/src/transactions/send_transaction_message/v1.rs b/ruma-federation-api/src/transactions/send_transaction_message/v1.rs index fb430813..b6822edc 100644 --- a/ruma-federation-api/src/transactions/send_transaction_message/v1.rs +++ b/ruma-federation-api/src/transactions/send_transaction_message/v1.rs @@ -35,6 +35,7 @@ ruma_api! { /// List of persistent updates to rooms. /// /// Must not be more than 50 items. + #[cfg_attr(feature = "unstable-pre-spec", serde(default, skip_serializing_if = "<[_]>::is_empty"))] pub pdus: &'a [Raw], /// List of ephemeral messages.