Remove matrix-events-sdk dependency (#31398)

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski
2025-12-04 13:24:28 +00:00
committed by GitHub
parent d1f45da51a
commit e7be9d16b9
40 changed files with 70 additions and 106 deletions
+2 -2
View File
@@ -27,7 +27,7 @@ function getSanitizedHtmlBody(content: IContent): string {
stripReplyFallback: true,
};
if (content.format === "org.matrix.custom.html") {
return bodyToHtml(content, null, opts);
return bodyToHtml(content, undefined, opts);
} else {
// convert the string to something that can be safely
// embedded in an html document, e.g. use html entities where needed
@@ -37,7 +37,7 @@ function getSanitizedHtmlBody(content: IContent): string {
// as opposed to bodyToHtml, here we also render
// text messages with dangerouslySetInnerHTML, to unify
// the code paths and because we need html to show differences
return textToHtml(bodyToHtml(content, null, opts));
return textToHtml(bodyToHtml(content, undefined, opts));
}
}