indent and use double quotes
This commit is contained in:
parent
43a111d4c9
commit
7cd3f51c56
1 changed files with 222 additions and 225 deletions
|
@ -3,7 +3,7 @@ import JSZip from "jszip";
|
|||
import { decryptFile } from "../DecryptFile";
|
||||
import { mediaFromContent, mediaFromMxc } from "../../customisations/Media";
|
||||
import { textForEvent } from "../../TextForEvent";
|
||||
import { Room } from 'matrix-js-sdk/src/models/room';
|
||||
import { Room } from "matrix-js-sdk/src/models/room";
|
||||
import { MatrixEvent } from "matrix-js-sdk/src/models/event";
|
||||
import { getUserNameColorClass } from "../FormattingUtils";
|
||||
import { Exporter } from "./Exporter";
|
||||
|
@ -311,7 +311,6 @@ protected wrapHTML(content: string, room: Room) {
|
|||
`
|
||||
}
|
||||
|
||||
|
||||
protected isEdit(event: MatrixEvent) {
|
||||
if (event.getType() === "m.room.message" && event.getContent().hasOwnProperty("m.new_content")) return true;
|
||||
return false;
|
||||
|
@ -356,7 +355,6 @@ protected async getUserAvatar(event: MatrixEvent) {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
protected async getImageData(event: MatrixEvent) {
|
||||
let blob: Blob;
|
||||
try {
|
||||
|
@ -476,7 +474,6 @@ protected async createHTML(events: MatrixEvent[], room: Room) {
|
|||
return this.wrapHTML(content, room);
|
||||
}
|
||||
|
||||
|
||||
public async export() {
|
||||
const html = await this.createHTML(this.res, this.room);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue