Fix m.room.message serialization

This commit is contained in:
Jonas Platte 2021-02-18 00:56:32 +01:00
parent 887e8247f7
commit e659df73a1
No known key found for this signature in database
GPG Key ID: 7D261D771D915378

View File

@ -89,7 +89,7 @@ impl MessageEventContent {
/// The content that is specific to each message type variant.
#[derive(Clone, Debug, Serialize)]
#[cfg_attr(not(feature = "unstable-exhaustive-types"), non_exhaustive)]
#[serde(tag = "msgtype")]
#[serde(untagged)]
pub enum MessageType {
/// An audio message.
Audio(AudioMessageEventContent),