From 6a41975826e672d1ffe0ec8ed6259b05b3a88045 Mon Sep 17 00:00:00 2001 From: Andrew Morgan Date: Wed, 10 Apr 2019 23:34:09 +0100 Subject: [PATCH] Specific check for user pills --- src/HtmlUtils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/HtmlUtils.js b/src/HtmlUtils.js index 3e3138fe66..ae307694f1 100644 --- a/src/HtmlUtils.js +++ b/src/HtmlUtils.js @@ -519,7 +519,7 @@ 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 == undefined; + && !content.formatted_body.includes("https://matrix.to/"); } const className = classNames({