From e7f0df7fcc57de7905abc6cf22971277f0572449 Mon Sep 17 00:00:00 2001 From: Jaiwanth Date: Thu, 3 Jun 2021 13:39:14 +0530 Subject: [PATCH] Small fix --- src/utils/exportUtils/Exporter.ts | 4 ++-- src/utils/exportUtils/HtmlExport.tsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/utils/exportUtils/Exporter.ts b/src/utils/exportUtils/Exporter.ts index 5e2de1faf1..6bdf5319f0 100644 --- a/src/utils/exportUtils/Exporter.ts +++ b/src/utils/exportUtils/Exporter.ts @@ -4,10 +4,10 @@ import { MatrixClientPeg } from "../../MatrixClientPeg"; import { TimelineWindow } from "matrix-js-sdk/src/timeline-window"; import { arrayFastClone } from "../arrays"; -export abstract class Exporter { +export default abstract class Exporter { constructor(protected room: Room) {} - protected getTimelineConversation = () : MatrixEvent => { + protected getTimelineConversation = () : MatrixEvent[] => { if (!this.room) return; const cli = MatrixClientPeg.get(); diff --git a/src/utils/exportUtils/HtmlExport.tsx b/src/utils/exportUtils/HtmlExport.tsx index c3174285e5..371ce9fffc 100644 --- a/src/utils/exportUtils/HtmlExport.tsx +++ b/src/utils/exportUtils/HtmlExport.tsx @@ -1,11 +1,11 @@ import React from "react" import streamSaver from "streamsaver"; import JSZip from "jszip"; +import Exporter from "./Exporter"; import { decryptFile } from "../DecryptFile"; import { mediaFromContent, mediaFromMxc } from "../../customisations/Media"; import { Room } from "matrix-js-sdk/src/models/room"; import { MatrixEvent } from "matrix-js-sdk/src/models/event"; -import { Exporter } from "./Exporter"; import { renderToStaticMarkup } from 'react-dom/server' import { Layout } from "../../settings/Layout"; import { shouldFormContinuation } from "../../components/structures/MessagePanel";