Support sending and displaying formatted messages (#10)

This commit is contained in:
Ulyssa 2023-01-23 17:08:11 -08:00
parent 8966644f6e
commit 4f2261e66f
No known key found for this signature in database
GPG key ID: 1B3965A3D18B9B64
11 changed files with 1770 additions and 233 deletions

View file

@ -324,7 +324,7 @@ impl ChatState {
return Ok(None);
}
let msg = TextMessageEventContent::plain(msg);
let msg = TextMessageEventContent::markdown(msg);
let msg = MessageType::Text(msg);
let mut msg = RoomMessageEventContent::new(msg);