From 43a111d4c989ecb93fb8f29b158dd8b8f286932e Mon Sep 17 00:00:00 2001 From: Jaiwanth Date: Mon, 24 May 2021 21:20:16 +0530 Subject: [PATCH] Return blob from export --- src/utils/exportUtils/Exporter.ts | 4 ++-- src/utils/exportUtils/HtmlExport.ts | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/utils/exportUtils/Exporter.ts b/src/utils/exportUtils/Exporter.ts index a4e14153c1..c782cc5a63 100644 --- a/src/utils/exportUtils/Exporter.ts +++ b/src/utils/exportUtils/Exporter.ts @@ -1,7 +1,7 @@ import { MatrixEvent } from "matrix-js-sdk/src/models/event"; -import Room from 'matrix-js-sdk/src/models/room'; +import { Room } from "matrix-js-sdk/src/models/room"; export abstract class Exporter { constructor(protected res: MatrixEvent[], protected room: Room) {} - abstract export(): Promise + abstract export(): Promise; } diff --git a/src/utils/exportUtils/HtmlExport.ts b/src/utils/exportUtils/HtmlExport.ts index 737a7736b4..90b65a8e2b 100644 --- a/src/utils/exportUtils/HtmlExport.ts +++ b/src/utils/exportUtils/HtmlExport.ts @@ -511,6 +511,8 @@ public async export() { await waiter; } writer.close(); + + return blob; } }