Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 7205e5d

Browse files
authored
Merge pull request #5295 from matrix-org/t3chguy/fix/15403
Fix edited replies being wrongly treated as big emoji
2 parents 709d33c + 8a22678 commit 7205e5d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/views/messages/TextualBody.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,8 @@ export default class TextualBody extends React.Component {
401401
const mxEvent = this.props.mxEvent;
402402
const content = mxEvent.getContent();
403403

404-
const stripReply = ReplyThread.getParentEventId(mxEvent);
404+
// only strip reply if this is the original replying event, edits thereafter do not have the fallback
405+
const stripReply = !mxEvent.replacingEvent() && ReplyThread.getParentEventId(mxEvent);
405406
let body = HtmlUtils.bodyToHtml(content, this.props.highlights, {
406407
disableBigEmoji: content.msgtype === "m.emote" || !SettingsStore.getValue('TextualBody.enableBigEmoji'),
407408
// Part of Replies fallback support

0 commit comments

Comments
 (0)