From 6e1f8ded2d3bc15660886b1842bdcff23e8d3d94 Mon Sep 17 00:00:00 2001 From: Jonas Platte Date: Fri, 1 May 2020 12:54:37 +0200 Subject: [PATCH] Add format, formatted_body to NoticeMessageEventContent --- src/room/message.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/room/message.rs b/src/room/message.rs index 33f05f54..1a0298a9 100644 --- a/src/room/message.rs +++ b/src/room/message.rs @@ -461,6 +461,15 @@ pub struct NoticeMessageEventContent { /// The notice text to send. pub body: String, + /// The format used in the `formatted_body`. Currently only `org.matrix.custom.html` is + /// supported. + #[serde(skip_serializing_if = "Option::is_none")] + pub format: Option, + + /// The formatted version of the `body`. This is required if `format` is specified. + #[serde(skip_serializing_if = "Option::is_none")] + pub formatted_body: Option, + /// Information about related messages for /// [rich replies](https://matrix.org/docs/spec/client_server/r0.5.0#rich-replies). #[serde(rename = "m.relates_to", skip_serializing_if = "Option::is_none")]