@@ -459,6 +474,10 @@ export default class HTMLExporter extends Exporter {
break;
}
+ if (isReply) {
+ messageBody = event.getContent().formatted_body.replace(/
.*<\/mx-reply>/, '')
+ }
+
return `
${!joined ? userPic : ``}
@@ -472,7 +491,7 @@ export default class HTMLExporter extends Exporter {
`: ``}
${isReply ?
` `: ``}
${messageBody}
@@ -515,7 +534,7 @@ export default class HTMLExporter extends Exporter {
this.zip.file("index.html", html);
this.zip.file("css/style.css", css);
-
+ this.zip.file("js/script.js", js);
const filename = `matrix-export-${new Date().toISOString()}.zip`;
//Generate the zip file asynchronously
diff --git a/src/utils/exportUtils/StreamToZip.ts b/src/utils/exportUtils/StreamToZip.ts
index 769fa91dba..01a2880386 100644
--- a/src/utils/exportUtils/StreamToZip.ts
+++ b/src/utils/exportUtils/StreamToZip.ts
@@ -1,17 +1,17 @@
/*Not to be reviewed now*/
-class fileCheckSum {
- protected CRC32: number;
- public table: any[];
- constructor() {
- this.CRC32 = -1
- }
+// class fileCheckSum {
+// protected CRC32: number;
+// public table: any[];
+// constructor() {
+// this.CRC32 = -1
+// }
- protected append(data: any[]) {
- let crc = this.CRC32 | 0;
- const table = this.table;
- for (let offset = 0, len = data.length | 0; offset < len; offset++) {
- crc = (crc >>> 8) ^ table[(crc ^ data[offset]) & 0xFF]
- }
- this.CRC32 = crc
- }
-}
+// protected append(data: any[]) {
+// let crc = this.CRC32 | 0;
+// const table = this.table;
+// for (let offset = 0, len = data.length | 0; offset < len; offset++) {
+// crc = (crc >>> 8) ^ table[(crc ^ data[offset]) & 0xFF]
+// }
+// this.CRC32 = crc
+// }
+// }