You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-08 21:42:24 +03:00
Fix BigEmoji handling for permalinks
OR doesn't give us the right thing, but AND does.
This commit is contained in:
@@ -451,8 +451,8 @@ export function bodyToHtml(content, highlights, opts={}) {
|
|||||||
// now, so we just check for an HTTP-looking thing.
|
// now, so we just check for an HTTP-looking thing.
|
||||||
(
|
(
|
||||||
content.formatted_body == undefined ||
|
content.formatted_body == undefined ||
|
||||||
!content.formatted_body.includes("http:") ||
|
(!content.formatted_body.includes("http:") &&
|
||||||
!content.formatted_body.includes("https:")
|
!content.formatted_body.includes("https:"))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user