client-api: Update include_leave in RoomFilter from Option<bool> to bool

This commit is contained in:
Jonas Platte 2020-09-03 21:23:06 +02:00
parent 56d2623b7d
commit a012ad3532
No known key found for this signature in database
GPG Key ID: 7D261D771D915378

View File

@ -100,9 +100,9 @@ impl<'a> RoomEventFilter<'a> {
pub struct RoomFilter<'a> { pub struct RoomFilter<'a> {
/// Include rooms that the user has left in the sync. /// Include rooms that the user has left in the sync.
/// ///
/// Defaults to false if not included. /// Defaults to `false`.
#[serde(skip_serializing_if = "Option::is_none")] #[serde(default, skip_serializing_if = "ruma_serde::is_default")]
pub include_leave: Option<bool>, pub include_leave: bool,
/// The per user account data to include for rooms. /// The per user account data to include for rooms.
#[serde(skip_serializing_if = "Option::is_none")] #[serde(skip_serializing_if = "Option::is_none")]