Handle non-media attachments
This commit is contained in:
parent
01284ef8c6
commit
a0a604618c
3 changed files with 18 additions and 2 deletions
|
@ -236,6 +236,14 @@ export default class HTMLExporter extends Exporter {
|
|||
this.zip.file(filePath, blob);
|
||||
break;
|
||||
}
|
||||
case "m.file": {
|
||||
const blob = await this.getMediaBlob(mxEv);
|
||||
const fileName = mxEv.getContent().body;
|
||||
const filePath = `files/${fileName}`;
|
||||
eventTile = this.getEventTile(mxEv, joined, filePath);
|
||||
this.zip.file(filePath, blob);
|
||||
break;
|
||||
}
|
||||
default:
|
||||
eventTile = this.getEventTile(mxEv, joined);
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue