client-api: Finalize moving knocking support out of unstable-pre-spec
This commit is contained in:
parent
739c3d5b16
commit
695b0c9ef4
@ -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
|
||||||
|
|
||||||
|
@ -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.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user