1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-08 21:42:24 +03:00

Appease CI

This commit is contained in:
Andrew Morgan
2019-04-11 00:42:27 +01:00
parent be02f67eef
commit 8398e5dd71

View File

@@ -519,7 +519,8 @@ 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 == undefined
|| !content.formatted_body.includes("https://matrix.to/"));
} }
const className = classNames({ const className = classNames({