client-api: Finalize moving knocking support out of unstable-pre-spec

This commit is contained in:
Kévin Commaille 2022-02-11 11:59:58 +01:00 committed by GitHub
parent 739c3d5b16
commit 695b0c9ef4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 3 deletions

View File

@ -45,6 +45,7 @@ Improvements:
* The `session::sso_login_with_provider::v3` endpoint * The `session::sso_login_with_provider::v3` endpoint
* Move reason support for leaving room out of `unstable-pre-spec` * Move reason support for leaving room out of `unstable-pre-spec`
* Move room type support 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 # 0.12.3

View File

@ -181,7 +181,6 @@ pub struct Rooms {
pub invite: BTreeMap<Box<RoomId>, InvitedRoom>, pub invite: BTreeMap<Box<RoomId>, InvitedRoom>,
/// The rooms that the user has knocked on. /// The rooms that the user has knocked on.
#[cfg(feature = "unstable-pre-spec")]
#[serde(default, skip_serializing_if = "BTreeMap::is_empty")] #[serde(default, skip_serializing_if = "BTreeMap::is_empty")]
pub knock: BTreeMap<Box<RoomId>, KnockedRoom>, pub knock: BTreeMap<Box<RoomId>, KnockedRoom>,
} }
@ -279,7 +278,6 @@ impl JoinedRoom {
/// Updates to knocked rooms. /// Updates to knocked rooms.
#[derive(Clone, Debug, Default, Deserialize, Serialize)] #[derive(Clone, Debug, Default, Deserialize, Serialize)]
#[cfg(feature = "unstable-pre-spec")]
#[cfg_attr(not(feature = "unstable-exhaustive-types"), non_exhaustive)] #[cfg_attr(not(feature = "unstable-exhaustive-types"), non_exhaustive)]
pub struct KnockedRoom { pub struct KnockedRoom {
/// The knock state. /// The knock state.
@ -288,7 +286,6 @@ pub struct KnockedRoom {
/// A mapping from a key `events` to a list of `StrippedStateEvent`. /// A mapping from a key `events` to a list of `StrippedStateEvent`.
#[derive(Clone, Debug, Default, Deserialize, Serialize)] #[derive(Clone, Debug, Default, Deserialize, Serialize)]
#[cfg(feature = "unstable-pre-spec")]
#[cfg_attr(not(feature = "unstable-exhaustive-types"), non_exhaustive)] #[cfg_attr(not(feature = "unstable-exhaustive-types"), non_exhaustive)]
pub struct KnockState { pub struct KnockState {
/// The list of events. /// The list of events.