diff --git a/crates/ruma-common/src/events/unsigned.rs b/crates/ruma-common/src/events/unsigned.rs index e524b8da..b0d2131a 100644 --- a/crates/ruma-common/src/events/unsigned.rs +++ b/crates/ruma-common/src/events/unsigned.rs @@ -76,7 +76,7 @@ pub struct StateUnsigned> { pub prev_content: Option, /// Server-compiled information from other events relating to this event. - #[cfg(feature = "unstable-pre-spec")] + #[cfg(feature = "unstable-msc2675")] #[serde(rename = "m.relations", skip_serializing_if = "Option::is_none")] pub relations: Option, } @@ -88,7 +88,7 @@ impl> StateUnsigned { age: None, transaction_id: None, prev_content: None, - #[cfg(feature = "unstable-pre-spec")] + #[cfg(feature = "unstable-msc2675")] relations: None, } } @@ -128,7 +128,7 @@ impl> StateUnsigned { #[serde(skip_serializing_if = "Option::is_none")] transaction_id: Option>, prev_content: Option>, - #[cfg(feature = "unstable-pre-spec")] + #[cfg(feature = "unstable-msc2675")] #[serde(rename = "m.relations", skip_serializing_if = "Option::is_none")] relations: Option, } @@ -140,7 +140,7 @@ impl> StateUnsigned { Ok(Self { age: raw.age, transaction_id: raw.transaction_id, - #[cfg(feature = "unstable-pre-spec")] + #[cfg(feature = "unstable-msc2675")] relations: raw.relations, prev_content, }) @@ -154,7 +154,7 @@ impl> StateUnsigned { age: self.age, transaction_id: self.transaction_id.clone(), prev_content: self.prev_content.as_ref().map(f), - #[cfg(feature = "unstable-pre-spec")] + #[cfg(feature = "unstable-msc2675")] relations: self.relations.clone(), } }