diff --git a/src/utils/exportUtils/HtmlExport.tsx b/src/utils/exportUtils/HtmlExport.tsx index 1dec02981c..9271db241e 100644 --- a/src/utils/exportUtils/HtmlExport.tsx +++ b/src/utils/exportUtils/HtmlExport.tsx @@ -79,8 +79,7 @@ export default class HTMLExporter extends Exporter { const creatorName = this.room?.getMember(creator)?.rawDisplayName || creator; const exporter = this.matrixClient.getUserId(); const exporterName = this.room?.getMember(exporter)?.rawDisplayName; - const topic = this.room.currentState.getStateEvents(EventType.RoomTopic, "")?.getContent()?.topic - || this.room.topic || ""; + const topic = this.room.currentState.getStateEvents(EventType.RoomTopic, "")?.getContent()?.topic || ""; const createdText = _t("%(creatorName)s created this room.", { creatorName, }); diff --git a/yarn.lock b/yarn.lock index 7ebe0d2ba8..0cc8be983f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1486,7 +1486,7 @@ resolved "https://registry.yarnpkg.com/@types/counterpart/-/counterpart-0.18.1.tgz#b1b784d9e54d9879f0a8cb12f2caedab65430fe8" integrity sha512-PRuFlBBkvdDOtxlIASzTmkEFar+S66Ek48NVVTWMUjtJAdn5vyMSN8y6IZIoIymGpR36q2nZbIYazBWyFxL+IQ== -"@types/diff-match-patch@^1.0.32": +"@types/diff-match-patch@^1.0.5": version "1.0.32" resolved "https://registry.yarnpkg.com/@types/diff-match-patch/-/diff-match-patch-1.0.32.tgz#d9c3b8c914aa8229485351db4865328337a3d09f" integrity sha512-bPYT5ECFiblzsVzyURaNhljBH2Gh1t9LowgUwciMrNAhFewLkHT2H0Mto07Y4/3KCOGZHRQll3CTtQZ0X11D/A==