Finish JSON export implementation

This commit is contained in:
Jaiwanth
2021-06-24 18:19:12 +05:30
parent 4bfac11911
commit 112dfa2b96
6 changed files with 138 additions and 16 deletions

View File

@@ -1,5 +1,6 @@
import { Room } from "matrix-js-sdk/src/models/room";
import HTMLExporter from "./HtmlExport";
import JSONExporter from "./JSONExport";
import PlainTextExporter from "./PlainTextExport";
export enum exportFormats {
@@ -33,6 +34,7 @@ const exportConversationalHistory = async (
await new HTMLExporter(room, exportType, exportOptions).export();
break;
case exportFormats.JSON:
await new JSONExporter(room, exportType, exportOptions).export();
break;
case exportFormats.LOGS:
await new PlainTextExporter(room, exportType, exportOptions).export();