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
isHtml makes no sense if there is no formatted_body
this is a bug pre-replies but replies exacerbates it Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
@@ -414,7 +414,7 @@ class TextHighlighter extends BaseHighlighter {
|
||||
* opts.stripReplyFallback: optional argument specifying the event is a reply and so fallback needs removing
|
||||
*/
|
||||
export function bodyToHtml(content, highlights, opts={}) {
|
||||
const isHtml = (content.format === "org.matrix.custom.html");
|
||||
const isHtml = (content.format === "org.matrix.custom.html") && content.formatted_body;
|
||||
let body;
|
||||
if (isHtml) {
|
||||
body = content.formatted_body;
|
||||
|
||||
Reference in New Issue
Block a user