feat(client-api): v4::SyncRequestList
has a new include_heroes
field (#1818)
This commit is contained in:
parent
1c1cfe9a7e
commit
ee5e6b8c9e
@ -3,6 +3,9 @@
|
|||||||
Improvements:
|
Improvements:
|
||||||
|
|
||||||
- Add support for MSC4108 OIDC sign in and E2EE set up via QR code
|
- Add support for MSC4108 OIDC sign in and E2EE set up via QR code
|
||||||
|
- Heroes in `sync::sync_events::v4`: `SyncRequestList` and `RoomSubscription`
|
||||||
|
both have a new `include_heroes` field. `SlidingSyncRoom` has a new `heroes`
|
||||||
|
field, with a new type `SlidingSyncRoomHero`.
|
||||||
|
|
||||||
# 0.18.0
|
# 0.18.0
|
||||||
|
|
||||||
|
@ -294,10 +294,17 @@ pub struct SyncRequestList {
|
|||||||
#[serde(flatten)]
|
#[serde(flatten)]
|
||||||
pub room_details: RoomDetailsConfig,
|
pub room_details: RoomDetailsConfig,
|
||||||
|
|
||||||
/// If tombstoned rooms should be returned and if so, with what information attached
|
/// If tombstoned rooms should be returned and if so, with what information attached.
|
||||||
#[serde(skip_serializing_if = "Option::is_none")]
|
#[serde(skip_serializing_if = "Option::is_none")]
|
||||||
pub include_old_rooms: Option<IncludeOldRooms>,
|
pub include_old_rooms: Option<IncludeOldRooms>,
|
||||||
|
|
||||||
|
/// Request a stripped variant of membership events for the users used to calculate the room
|
||||||
|
/// name.
|
||||||
|
///
|
||||||
|
/// Sticky.
|
||||||
|
#[serde(skip_serializing_if = "Option::is_none")]
|
||||||
|
pub include_heroes: Option<bool>,
|
||||||
|
|
||||||
/// Filters to apply to the list before sorting. Sticky.
|
/// Filters to apply to the list before sorting. Sticky.
|
||||||
#[serde(skip_serializing_if = "Option::is_none")]
|
#[serde(skip_serializing_if = "Option::is_none")]
|
||||||
pub filters: Option<SyncRequestListFilters>,
|
pub filters: Option<SyncRequestListFilters>,
|
||||||
@ -505,7 +512,7 @@ pub struct SlidingSyncRoomHero {
|
|||||||
pub user_id: Option<OwnedUserId>,
|
pub user_id: Option<OwnedUserId>,
|
||||||
|
|
||||||
/// The name of the hero.
|
/// The name of the hero.
|
||||||
#[serde(skip_serializing_if = "Option::is_none")]
|
#[serde(rename = "displayname", skip_serializing_if = "Option::is_none")]
|
||||||
pub name: Option<String>,
|
pub name: Option<String>,
|
||||||
|
|
||||||
/// The avatar of the hero.
|
/// The avatar of the hero.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user