Small fix

pull/21833/head
Jaiwanth 2021-06-03 13:39:14 +05:30
parent 4c22d1f2a1
commit e7f0df7fcc
2 changed files with 3 additions and 3 deletions

View File

@ -4,10 +4,10 @@ import { MatrixClientPeg } from "../../MatrixClientPeg";
import { TimelineWindow } from "matrix-js-sdk/src/timeline-window"; import { TimelineWindow } from "matrix-js-sdk/src/timeline-window";
import { arrayFastClone } from "../arrays"; import { arrayFastClone } from "../arrays";
export abstract class Exporter { export default abstract class Exporter {
constructor(protected room: Room) {} constructor(protected room: Room) {}
protected getTimelineConversation = () : MatrixEvent => { protected getTimelineConversation = () : MatrixEvent[] => {
if (!this.room) return; if (!this.room) return;
const cli = MatrixClientPeg.get(); const cli = MatrixClientPeg.get();

View File

@ -1,11 +1,11 @@
import React from "react" import React from "react"
import streamSaver from "streamsaver"; import streamSaver from "streamsaver";
import JSZip from "jszip"; import JSZip from "jszip";
import Exporter from "./Exporter";
import { decryptFile } from "../DecryptFile"; import { decryptFile } from "../DecryptFile";
import { mediaFromContent, mediaFromMxc } from "../../customisations/Media"; import { mediaFromContent, mediaFromMxc } from "../../customisations/Media";
import { Room } from "matrix-js-sdk/src/models/room"; import { Room } from "matrix-js-sdk/src/models/room";
import { MatrixEvent } from "matrix-js-sdk/src/models/event"; import { MatrixEvent } from "matrix-js-sdk/src/models/event";
import { Exporter } from "./Exporter";
import { renderToStaticMarkup } from 'react-dom/server' import { renderToStaticMarkup } from 'react-dom/server'
import { Layout } from "../../settings/Layout"; import { Layout } from "../../settings/Layout";
import { shouldFormContinuation } from "../../components/structures/MessagePanel"; import { shouldFormContinuation } from "../../components/structures/MessagePanel";