Switch logic

pull/21833/head
Andrew Morgan 2019-04-11 00:09:38 +01:00
parent 52facdc0c3
commit be02f67eef
1 changed files with 1 additions and 1 deletions

View File

@ -519,7 +519,7 @@ export function bodyToHtml(content, highlights, opts={}) {
emojiBody = match && match[0] && match[0].length === contentBodyTrimmed.length emojiBody = match && match[0] && match[0].length === contentBodyTrimmed.length
// Prevent user pills expanding for users with only emoji in // Prevent user pills expanding for users with only emoji in
// their username // their username
&& (content.formatted_body && !content.formatted_body.includes("https://matrix.to/")); && (!content.formatted_body || !content.formatted_body.includes("https://matrix.to/"));
} }
const className = classNames({ const className = classNames({