mirror of https://github.com/vector-im/riot-web
Return blob from export
parent
136b6db047
commit
43a111d4c9
|
@ -1,7 +1,7 @@
|
||||||
import { MatrixEvent } from "matrix-js-sdk/src/models/event";
|
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 {
|
export abstract class Exporter {
|
||||||
constructor(protected res: MatrixEvent[], protected room: Room) {}
|
constructor(protected res: MatrixEvent[], protected room: Room) {}
|
||||||
abstract export(): Promise<void>
|
abstract export(): Promise<Blob>;
|
||||||
}
|
}
|
||||||
|
|
|
@ -511,6 +511,8 @@ public async export() {
|
||||||
await waiter;
|
await waiter;
|
||||||
}
|
}
|
||||||
writer.close();
|
writer.close();
|
||||||
|
|
||||||
|
return blob;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue