events: Move VerificationRequest's deserialization out of unstable-pre-spec
This commit is contained in:
parent
851646dd97
commit
bb80b33bd9
@ -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
|
||||||
|
|
||||||
|
@ -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)?),
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user