Skip to content

Commit 83d5e56

Browse files
committed
feat(bindings): Update send_reply to accept markdown
1 parent a47d866 commit 83d5e56

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

Cargo.lock

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bindings/matrix-sdk-ffi/src/room.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,8 @@ impl Room {
193193
let original_message =
194194
event_content.as_original().context("Couldn't retrieve original message.")?;
195195

196-
let reply_content = RoomMessageEventContent::text_reply_plain(msg, original_message);
196+
let reply_content =
197+
RoomMessageEventContent::text_markdown(msg).make_reply_to(original_message);
197198

198199
room.send(reply_content, txn_id.as_deref().map(Into::into)).await?;
199200

0 commit comments

Comments
 (0)