mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-11-07 15:08:24 +00:00
Specific check for user pills
This commit is contained in:
+1
-1
@@ -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 == undefined;
|
&& !content.formatted_body.includes("https://matrix.to/");
|
||||||
}
|
}
|
||||||
|
|
||||||
const className = classNames({
|
const className = classNames({
|
||||||
|
|||||||
Reference in New Issue
Block a user