diff --git a/crates/ruma-client-api/src/sync/sync_events/v4.rs b/crates/ruma-client-api/src/sync/sync_events/v4.rs index dda0854a..e5d8d264 100644 --- a/crates/ruma-client-api/src/sync/sync_events/v4.rs +++ b/crates/ruma-client-api/src/sync/sync_events/v4.rs @@ -412,11 +412,10 @@ pub struct SlidingSyncRoom { #[serde(skip_serializing_if = "Option::is_none")] pub is_dm: Option, - /// This is not-yet-accepted invite, with the following sync state events - /// the room must be considered in invite state as long as the Option is not None - /// even if there are no state events. - #[serde(default, skip_serializing_if = "Vec::is_empty")] - pub invite_state: Vec>, + /// If this is `Some(_)`, this is a not-yet-accepted invite containing the given stripped state + /// events. + #[serde(skip_serializing_if = "Option::is_none")] + pub invite_state: Option>>, /// Counts of unread notifications for this room. #[serde(flatten, default, skip_serializing_if = "UnreadNotificationsCount::is_empty")]