client-api: Remove token from keys::get_keys::Request

According to a spec clarification.
This commit is contained in:
Kévin Commaille 2023-04-17 11:58:00 +02:00 committed by Kévin Commaille
parent fea6299935
commit 2bf33def5c
2 changed files with 1 additions and 9 deletions

View File

@ -4,6 +4,7 @@ Breaking changes:
- Define `rank` as an `Option<f64>` instead of an `Option<UInt>` in - Define `rank` as an `Option<f64>` instead of an `Option<UInt>` in
`search::search_events::v3::SearchResult` `search::search_events::v3::SearchResult`
- Remove the `token` field from `keys::get_keys::Request`, according to a spec clarification.
Improvements: Improvements:

View File

@ -46,15 +46,6 @@ pub mod v3 {
/// ///
/// An empty list indicates all devices for the corresponding user. /// An empty list indicates all devices for the corresponding user.
pub device_keys: BTreeMap<OwnedUserId, Vec<OwnedDeviceId>>, pub device_keys: BTreeMap<OwnedUserId, Vec<OwnedDeviceId>>,
/// If the client is fetching keys as a result of a device update received in a sync
/// request, this should be the 'since' token of that sync request, or any later sync
/// token.
///
/// This allows the server to ensure its response contains the keys advertised by the
/// notification in that sync.
#[serde(skip_serializing_if = "Option::is_none")]
pub token: Option<String>,
} }
/// Response type for the `get_keys` endpoint. /// Response type for the `get_keys` endpoint.