From 2bf33def5c7cc3e026f88467836eb0d4119cef3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Commaille?= Date: Mon, 17 Apr 2023 11:58:00 +0200 Subject: [PATCH] client-api: Remove token from keys::get_keys::Request According to a spec clarification. --- crates/ruma-client-api/CHANGELOG.md | 1 + crates/ruma-client-api/src/keys/get_keys.rs | 9 --------- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/crates/ruma-client-api/CHANGELOG.md b/crates/ruma-client-api/CHANGELOG.md index 9c256bf4..2a5dcb71 100644 --- a/crates/ruma-client-api/CHANGELOG.md +++ b/crates/ruma-client-api/CHANGELOG.md @@ -4,6 +4,7 @@ Breaking changes: - Define `rank` as an `Option` instead of an `Option` in `search::search_events::v3::SearchResult` +- Remove the `token` field from `keys::get_keys::Request`, according to a spec clarification. Improvements: diff --git a/crates/ruma-client-api/src/keys/get_keys.rs b/crates/ruma-client-api/src/keys/get_keys.rs index 45a882a8..3ddfd91e 100644 --- a/crates/ruma-client-api/src/keys/get_keys.rs +++ b/crates/ruma-client-api/src/keys/get_keys.rs @@ -46,15 +46,6 @@ pub mod v3 { /// /// An empty list indicates all devices for the corresponding user. pub device_keys: BTreeMap>, - - /// 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, } /// Response type for the `get_keys` endpoint.