events: Move VerificationRequest's deserialization out of unstable-pre-spec

This commit is contained in:
Kévin Commaille 2022-02-10 21:24:40 +01:00 committed by Jonas Platte
parent 851646dd97
commit bb80b33bd9
2 changed files with 1 additions and 1 deletions

View File

@ -20,6 +20,7 @@ Improvements:
* Add `room::message::MessageType::body` accessor method * Add `room::message::MessageType::body` accessor method
* Implement `Redact` for event structs (in addition to `Any` event enums) * Implement `Redact` for event structs (in addition to `Any` event enums)
* Add `room::message::RoomMessageEventContent::{body, msgtype}` accessor methods * Add `room::message::RoomMessageEventContent::{body, msgtype}` accessor methods
* Move `room::message::MessageType::VerificationRequest` out of `unstable-pre-spec`
# 0.24.6 # 0.24.6

View File

@ -45,7 +45,6 @@ impl<'de> Deserialize<'de> for MessageType {
"m.server_notice" => Self::ServerNotice(from_raw_json_value(&json)?), "m.server_notice" => Self::ServerNotice(from_raw_json_value(&json)?),
"m.text" => Self::Text(from_raw_json_value(&json)?), "m.text" => Self::Text(from_raw_json_value(&json)?),
"m.video" => Self::Video(from_raw_json_value(&json)?), "m.video" => Self::Video(from_raw_json_value(&json)?),
#[cfg(feature = "unstable-pre-spec")]
"m.key.verification.request" => Self::VerificationRequest(from_raw_json_value(&json)?), "m.key.verification.request" => Self::VerificationRequest(from_raw_json_value(&json)?),
_ => Self::_Custom(from_raw_json_value(&json)?), _ => Self::_Custom(from_raw_json_value(&json)?),
}) })