From 634c3f1ee57a2e6248cbd46c131e6fb5ca1fdc78 Mon Sep 17 00:00:00 2001 From: Jonas Platte Date: Mon, 23 Nov 2020 19:13:21 +0100 Subject: [PATCH] events: Allow m.room.tombstone without a body under `unstable-synapse-quirks` --- ruma-events/src/room/tombstone.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/ruma-events/src/room/tombstone.rs b/ruma-events/src/room/tombstone.rs index 2ab25eef..d4f6eb98 100644 --- a/ruma-events/src/room/tombstone.rs +++ b/ruma-events/src/room/tombstone.rs @@ -15,6 +15,7 @@ pub type TombstoneEvent = StateEvent; #[ruma_event(type = "m.room.tombstone")] pub struct TombstoneEventContent { /// A server-defined message. + #[cfg_attr(feature = "unstable-synapse-quirks", serde(default))] pub body: String, /// The new room the client should be visiting.