diff --git a/crates/ruma-federation-api/CHANGELOG.md b/crates/ruma-federation-api/CHANGELOG.md index eb923fb0..f5701fca 100644 --- a/crates/ruma-federation-api/CHANGELOG.md +++ b/crates/ruma-federation-api/CHANGELOG.md @@ -11,6 +11,7 @@ Improvements: * Move `knock` module out of `unstable-pre-spec` * `knock:::send_knock::v1::Request` requires a PDU instead of the `knock_event` +* Move cross-signing properties of `keys::get_keys::v1::Response` out of `unstable-pre-spec` # 0.3.1 diff --git a/crates/ruma-federation-api/src/keys/get_keys/v1.rs b/crates/ruma-federation-api/src/keys/get_keys/v1.rs index 844cbdfa..790d6e32 100644 --- a/crates/ruma-federation-api/src/keys/get_keys/v1.rs +++ b/crates/ruma-federation-api/src/keys/get_keys/v1.rs @@ -1,11 +1,9 @@ -//! [POST /_matrix/federation/v1/user/keys/query](https://matrix.org/docs/spec/server_server/r0.1.4#post-matrix-federation-v1-user-keys-query) +//! [POST /_matrix/federation/v1/user/keys/query](https://spec.matrix.org/v1.1/server-server-api/#post_matrixfederationv1userkeysquery) use std::collections::BTreeMap; use ruma_api::ruma_api; -#[cfg(feature = "unstable-pre-spec")] -use ruma_common::encryption::CrossSigningKey; -use ruma_common::encryption::DeviceKeys; +use ruma_common::encryption::{CrossSigningKey, DeviceKeys}; use ruma_identifiers::{DeviceId, UserId}; use ruma_serde::Raw; @@ -32,12 +30,10 @@ ruma_api! { pub device_keys: BTreeMap, BTreeMap, Raw>>, /// Information on the master cross-signing keys of the queried users. - #[cfg(feature = "unstable-pre-spec")] #[serde(default, skip_serializing_if = "BTreeMap::is_empty")] pub master_keys: BTreeMap, Raw>, /// Information on the self-signing keys of the queried users. - #[cfg(feature = "unstable-pre-spec")] #[serde(default, skip_serializing_if = "BTreeMap::is_empty")] pub self_signing_keys: BTreeMap, Raw>, }