From 695b0c9ef4d4dff296407a5f8292ad9139363810 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Commaille?= <76261501+zecakeh@users.noreply.github.com> Date: Fri, 11 Feb 2022 11:59:58 +0100 Subject: [PATCH] client-api: Finalize moving knocking support out of unstable-pre-spec --- crates/ruma-client-api/CHANGELOG.md | 1 + crates/ruma-client-api/src/r0/sync/sync_events.rs | 3 --- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/crates/ruma-client-api/CHANGELOG.md b/crates/ruma-client-api/CHANGELOG.md index a0949dc2..0fd6df44 100644 --- a/crates/ruma-client-api/CHANGELOG.md +++ b/crates/ruma-client-api/CHANGELOG.md @@ -45,6 +45,7 @@ Improvements: * The `session::sso_login_with_provider::v3` endpoint * Move reason support for leaving room out of `unstable-pre-spec` * Move room type support out of `unstable-pre-spec` +* Move knocking support out of `unstable-pre-spec` # 0.12.3 diff --git a/crates/ruma-client-api/src/r0/sync/sync_events.rs b/crates/ruma-client-api/src/r0/sync/sync_events.rs index 88bfcf85..3dbb482a 100644 --- a/crates/ruma-client-api/src/r0/sync/sync_events.rs +++ b/crates/ruma-client-api/src/r0/sync/sync_events.rs @@ -181,7 +181,6 @@ pub struct Rooms { pub invite: BTreeMap, InvitedRoom>, /// The rooms that the user has knocked on. - #[cfg(feature = "unstable-pre-spec")] #[serde(default, skip_serializing_if = "BTreeMap::is_empty")] pub knock: BTreeMap, KnockedRoom>, } @@ -279,7 +278,6 @@ impl JoinedRoom { /// Updates to knocked rooms. #[derive(Clone, Debug, Default, Deserialize, Serialize)] -#[cfg(feature = "unstable-pre-spec")] #[cfg_attr(not(feature = "unstable-exhaustive-types"), non_exhaustive)] pub struct KnockedRoom { /// The knock state. @@ -288,7 +286,6 @@ pub struct KnockedRoom { /// A mapping from a key `events` to a list of `StrippedStateEvent`. #[derive(Clone, Debug, Default, Deserialize, Serialize)] -#[cfg(feature = "unstable-pre-spec")] #[cfg_attr(not(feature = "unstable-exhaustive-types"), non_exhaustive)] pub struct KnockState { /// The list of events.