mirror of https://github.com/vector-im/riot-web
Don't act on undefined attributes
parent
6a41975826
commit
52facdc0c3
|
@ -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.includes("https://matrix.to/");
|
||||
&& (content.formatted_body && !content.formatted_body.includes("https://matrix.to/"));
|
||||
}
|
||||
|
||||
const className = classNames({
|
||||
|
|
Loading…
Reference in New Issue