commit e3ffb96a41b9997b864e5030fc1798df2b1843ab
parent 237ba86b3d74829d8fd3b6b08312c0db9066f636
Author: Marcel <mtrnord1@gmail.com>
Date: Sun, 26 Jul 2020 11:29:29 +0200
Use FormattedBody::html
Took 3 minutes
Diffstat:
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/src/app/matrix/mod.rs b/src/app/matrix/mod.rs
@@ -394,10 +394,7 @@ impl Agent for MatrixAgent {
MessageEventContent::Text(TextMessageEventContent {
body: message,
relates_to: None,
- formatted: Some(FormattedBody {
- body: formatted_message,
- format: MessageFormat::Html,
- }),
+ formatted: Some(FormattedBody::html(formatted_message)),
})
};
if let Err(e) = client.room_send(&room_id, content, None).await {