mirror of https://github.com/vector-im/riot-web
Small fix
parent
4c22d1f2a1
commit
e7f0df7fcc
|
@ -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();
|
||||||
|
|
|
@ -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";
|
||||||
|
|
Loading…
Reference in New Issue