From fea9f4a4df552f2e07915eb5a4ac83a00a4a3a54 Mon Sep 17 00:00:00 2001 From: Jaiwanth Date: Wed, 18 Aug 2021 08:38:39 +0530 Subject: [PATCH] Use staticMarkup instead of string --- src/utils/exportUtils/HtmlExport.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/exportUtils/HtmlExport.tsx b/src/utils/exportUtils/HtmlExport.tsx index 124b390293..1c39dfe844 100644 --- a/src/utils/exportUtils/HtmlExport.tsx +++ b/src/utils/exportUtils/HtmlExport.tsx @@ -20,7 +20,7 @@ import Exporter from "./Exporter"; import { mediaFromMxc } from "../../customisations/Media"; import { Room } from "matrix-js-sdk/src/models/room"; import { MatrixEvent } from "matrix-js-sdk/src/models/event"; -import { renderToStaticMarkup, renderToString } from "react-dom/server"; +import { renderToStaticMarkup } from "react-dom/server"; import { Layout } from "../../settings/Layout"; import { shouldFormContinuation } from "../../components/structures/MessagePanel"; import { formatFullDateNoDayNoTime, wantsDateSeparator } from "../../DateUtils"; @@ -304,7 +304,7 @@ export default class HTMLExporter extends Exporter { ); eventTileMarkup = tempRoot.innerHTML; } else { - eventTileMarkup = renderToString(EventTile); + eventTileMarkup = renderToStaticMarkup(EventTile); } if (filePath) {