feat(client-api): v4::SyncRequestList has a new include_heroes field (#1818)

This commit is contained in:
Ivan Enderlin 2024-05-23 11:57:13 +02:00 committed by GitHub
parent 1c1cfe9a7e
commit ee5e6b8c9e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 12 additions and 2 deletions

View File

@ -3,6 +3,9 @@
Improvements:
- 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

View File

@ -294,10 +294,17 @@ pub struct SyncRequestList {
#[serde(flatten)]
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")]
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.
#[serde(skip_serializing_if = "Option::is_none")]
pub filters: Option<SyncRequestListFilters>,
@ -505,7 +512,7 @@ pub struct SlidingSyncRoomHero {
pub user_id: Option<OwnedUserId>,
/// 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>,
/// The avatar of the hero.