Re-apply "federation-api: Make pdus of transactions optional under unstable-pre-spec"

This reverts commit cf7718107267eb65cc2b87a60dd343ce46fd70c1.
This commit is contained in:
Jonas Platte 2020-12-13 11:55:06 +01:00
parent ae6595339c
commit e1d621ebd0
No known key found for this signature in database
GPG Key ID: CC154DE0E30B7C67

View File

@ -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<Pdu>],
/// List of ephemeral messages.