client-api: Fix type of SlidingSyncRoom#invite_state

This commit is contained in:
Jonas Platte 2023-04-27 18:28:57 +02:00 committed by Jonas Platte
parent b50037affc
commit 54a4223caa

View File

@ -412,11 +412,10 @@ pub struct SlidingSyncRoom {
#[serde(skip_serializing_if = "Option::is_none")] #[serde(skip_serializing_if = "Option::is_none")]
pub is_dm: Option<bool>, pub is_dm: Option<bool>,
/// This is not-yet-accepted invite, with the following sync state events /// If this is `Some(_)`, this is a not-yet-accepted invite containing the given stripped state
/// the room must be considered in invite state as long as the Option is not None /// events.
/// even if there are no state events. #[serde(skip_serializing_if = "Option::is_none")]
#[serde(default, skip_serializing_if = "Vec::is_empty")] pub invite_state: Option<Vec<Raw<AnyStrippedStateEvent>>>,
pub invite_state: Vec<Raw<AnyStrippedStateEvent>>,
/// Counts of unread notifications for this room. /// Counts of unread notifications for this room.
#[serde(flatten, default, skip_serializing_if = "UnreadNotificationsCount::is_empty")] #[serde(flatten, default, skip_serializing_if = "UnreadNotificationsCount::is_empty")]