Start implementation of plain text export

This commit is contained in:
Jaiwanth
2021-06-17 10:46:08 +05:30
parent cff4521106
commit 9e6b8ff9f5
5 changed files with 74 additions and 4 deletions
+2
View File
@@ -1,5 +1,6 @@
import { Room } from "matrix-js-sdk/src/models/room";
import HTMLExporter from "./HtmlExport";
import PlainTextExporter from "./PlainTextExport";
export enum exportFormats {
HTML = "HTML",
@@ -34,6 +35,7 @@ const exportConversationalHistory = async (
case exportFormats.JSON:
break;
case exportFormats.LOGS:
await new PlainTextExporter(room, exportType, exportOptions).export();
break;
}
};