diff --git a/src/components/views/rooms/wysiwyg_composer/utils/createMessageContent.ts b/src/components/views/rooms/wysiwyg_composer/utils/createMessageContent.ts index fe7f7706b4..f0488e4599 100644 --- a/src/components/views/rooms/wysiwyg_composer/utils/createMessageContent.ts +++ b/src/components/views/rooms/wysiwyg_composer/utils/createMessageContent.ts @@ -89,15 +89,15 @@ export function createMessageContent( const htmlPrefix = isReply ? getHtmlReplyFallback(editedEvent) : ''; content.formatted_body = isEditing ? `${htmlPrefix} * ${formattedBody}` : formattedBody; + } - if (isEditing) { - content['m.new_content'] = { - "msgtype": content.msgtype, - "body": body, - "format": "org.matrix.custom.html", - 'formatted_body': formattedBody, - }; - } + if (isEditing) { + content['m.new_content'] = { + "msgtype": content.msgtype, + "body": body, + "format": "org.matrix.custom.html", + 'formatted_body': formattedBody, + }; } const newRelation = isEditing ?