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")]
pub is_dm: Option<bool>,
/// 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<Raw<AnyStrippedStateEvent>>,
/// 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<Vec<Raw<AnyStrippedStateEvent>>>,
/// Counts of unread notifications for this room.
#[serde(flatten, default, skip_serializing_if = "UnreadNotificationsCount::is_empty")]