diff --git a/webapp/components/post_view/components/system_message_helpers.jsx b/webapp/components/post_view/components/system_message_helpers.jsx index 6f64545994..5db4ff8712 100644 --- a/webapp/components/post_view/components/system_message_helpers.jsx +++ b/webapp/components/post_view/components/system_message_helpers.jsx @@ -7,12 +7,16 @@ import {FormattedMessage} from 'react-intl'; import {PostTypes} from 'utils/constants.jsx'; import {formatText} from 'utils/text_formatting.jsx'; +function renderUsername(value, options) { + return renderFormattedText(value, {...options, markdown: false}); +} + function renderFormattedText(value, options) { return ; } function renderJoinChannelMessage(post, options) { - const username = renderFormattedText(post.props.username, options); + const username = renderUsername(post.props.username, options); return (