events: Move RoomMemberEventContent reason field out of unstable-pre-spec

… stable since v1.1.
This commit is contained in:
Jonas Platte 2022-02-01 21:27:47 +01:00
parent 3ed7c8a643
commit de0b3e1cf3
No known key found for this signature in database
GPG Key ID: CC154DE0E30B7C67

View File

@ -94,7 +94,6 @@ pub struct RoomMemberEventContent {
/// Clients are not recommended to show this reason to users when receiving an invite due to /// Clients are not recommended to show this reason to users when receiving an invite due to
/// the potential for spam and abuse. Hiding the reason behind a button or other component /// the potential for spam and abuse. Hiding the reason behind a button or other component
/// is recommended. /// is recommended.
#[cfg(feature = "unstable-pre-spec")]
#[serde(skip_serializing_if = "Option::is_none")] #[serde(skip_serializing_if = "Option::is_none")]
pub reason: Option<String>, pub reason: Option<String>,
@ -116,7 +115,6 @@ impl RoomMemberEventContent {
third_party_invite: None, third_party_invite: None,
#[cfg(feature = "unstable-pre-spec")] #[cfg(feature = "unstable-pre-spec")]
blurhash: None, blurhash: None,
#[cfg(feature = "unstable-pre-spec")]
reason: None, reason: None,
#[cfg(feature = "unstable-pre-spec")] #[cfg(feature = "unstable-pre-spec")]
join_authorized_via_users_server: None, join_authorized_via_users_server: None,
@ -354,7 +352,6 @@ fn membership_change(
third_party_invite: None, third_party_invite: None,
#[cfg(feature = "unstable-pre-spec")] #[cfg(feature = "unstable-pre-spec")]
blurhash: None, blurhash: None,
#[cfg(feature = "unstable-pre-spec")]
reason: None, reason: None,
#[cfg(feature = "unstable-pre-spec")] #[cfg(feature = "unstable-pre-spec")]
join_authorized_via_users_server: None, join_authorized_via_users_server: None,