events: Allow m.room.tombstone without a body under unstable-synapse-quirks

This commit is contained in:
Jonas Platte 2020-11-23 19:13:21 +01:00
parent f2c2f2df2f
commit 634c3f1ee5
No known key found for this signature in database
GPG Key ID: CC154DE0E30B7C67

View File

@ -15,6 +15,7 @@ pub type TombstoneEvent = StateEvent<TombstoneEventContent>;
#[ruma_event(type = "m.room.tombstone")] #[ruma_event(type = "m.room.tombstone")]
pub struct TombstoneEventContent { pub struct TombstoneEventContent {
/// A server-defined message. /// A server-defined message.
#[cfg_attr(feature = "unstable-synapse-quirks", serde(default))]
pub body: String, pub body: String,
/// The new room the client should be visiting. /// The new room the client should be visiting.