diff --git a/crates/ruma-common/src/doc/rich_reply.md b/crates/ruma-common/src/doc/rich_reply.md index 4777559d..a47467ad 100644 --- a/crates/ruma-common/src/doc/rich_reply.md +++ b/crates/ruma-common/src/doc/rich_reply.md @@ -4,6 +4,9 @@ the previous message, for which the room ID is required. If you want to reply to [`OriginalSyncRoomMessageEvent`], you have to convert it first by calling [`.into_full_event()`][crate::events::OriginalSyncMessageLikeEvent::into_full_event]. +If the message was edited, the previous message should be the original message that was edited, +with the content of its replacement, to allow the fallback to be accurate at the time it is added. + It is recommended to enable the `sanitize` feature when using this method as this will clean up nested [rich reply fallbacks] in chains of replies. This uses [`sanitize_html()`] internally, with [`RemoveReplyFallback::Yes`].