fix classes used for body spans, and only apply markdown-body to markdown(!)

pull/21833/head
Matthew Hodgson 2016-07-15 15:04:19 +01:00
parent ca5987bf6c
commit 41bff38713
1 changed files with 4 additions and 2 deletions

View File

@ -223,8 +223,10 @@ module.exports = {
let match = EMOJI_REGEX.exec(contentBodyTrimmed);
let emojiBody = match && match[0] && match[0].length === contentBodyTrimmed.length;
let className = classNames('markdown-body', {
'emoji-body': emojiBody,
const className = classNames({
'mx_EventTile_body': true,
'mx_EventTile_bigEmoji': emojiBody,
'markdown-body': isHtml,
});
return <span className={className} dangerouslySetInnerHTML={{ __html: safeBody }} />;
},