From 8398e5dd71de8a973be3b718bd10be43bd144302 Mon Sep 17 00:00:00 2001 From: Andrew Morgan Date: Thu, 11 Apr 2019 00:42:27 +0100 Subject: [PATCH] Appease CI --- src/HtmlUtils.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/HtmlUtils.js b/src/HtmlUtils.js index bde3978677..d9d8bac93b 100644 --- a/src/HtmlUtils.js +++ b/src/HtmlUtils.js @@ -519,7 +519,8 @@ export function bodyToHtml(content, highlights, opts={}) { emojiBody = match && match[0] && match[0].length === contentBodyTrimmed.length // Prevent user pills expanding for users with only emoji in // 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({