diff --git a/src/components/views/messages/EditHistoryMessage.js b/src/components/views/messages/EditHistoryMessage.js index 44d98abc0a..fe8d465698 100644 --- a/src/components/views/messages/EditHistoryMessage.js +++ b/src/components/views/messages/EditHistoryMessage.js @@ -119,22 +119,25 @@ export default class EditHistoryMessage extends React.PureComponent { const {mxEvent} = this.props; const originalContent = mxEvent.getOriginalContent(); const content = originalContent["m.new_content"] || originalContent; - const contentElements = HtmlUtils.bodyToHtml(content, null, {stripReplyFallback: true}); let contentContainer; if (mxEvent.isRedacted()) { const UnknownBody = sdk.getComponent('messages.UnknownBody'); contentContainer = ; - } else if (mxEvent.getContent().msgtype === "m.emote") { - const name = mxEvent.sender ? mxEvent.sender.name : mxEvent.getSender(); - contentContainer = ( -
*  - { name } -  {contentElements} -
- ); } else { - contentContainer =
{contentElements}
; + const contentElements = HtmlUtils.bodyToHtml(content, null, {stripReplyFallback: true}); + if (mxEvent.getContent().msgtype === "m.emote") { + const name = mxEvent.sender ? mxEvent.sender.name : mxEvent.getSender(); + contentContainer = ( +
*  + { name } +  {contentElements} +
+ ); + } else { + contentContainer =
{contentElements}
; + } } + const timestamp = formatTime(new Date(mxEvent.getTs()), this.props.isTwelveHour); const isSending = (['sending', 'queued', 'encrypting'].indexOf(this.state.sendStatus) !== -1); const classes = classNames({