mirror of https://github.com/vector-im/riot-web
Delint
parent
f07402d234
commit
6d0fd0322e
|
@ -44,7 +44,7 @@ interface IProps {
|
||||||
layout?: Layout;
|
layout?: Layout;
|
||||||
// Whether to always show a timestamp
|
// Whether to always show a timestamp
|
||||||
alwaysShowTimestamps?: boolean;
|
alwaysShowTimestamps?: boolean;
|
||||||
forExport?: boolean,
|
forExport?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface IState {
|
interface IState {
|
||||||
|
|
|
@ -6,7 +6,7 @@ import { exportOptions, exportTypes } from "./exportUtils";
|
||||||
import { decryptFile } from "../DecryptFile";
|
import { decryptFile } from "../DecryptFile";
|
||||||
import { mediaFromContent } from "../../customisations/Media";
|
import { mediaFromContent } from "../../customisations/Media";
|
||||||
import { formatFullDateNoDay } from "../../DateUtils";
|
import { formatFullDateNoDay } from "../../DateUtils";
|
||||||
import { MatrixClient } from "matrix-js-sdk";
|
import { Direction, MatrixClient } from "matrix-js-sdk";
|
||||||
import streamToZIP from "./ZipStream";
|
import streamToZIP from "./ZipStream";
|
||||||
import * as ponyfill from "web-streams-polyfill/ponyfill";
|
import * as ponyfill from "web-streams-polyfill/ponyfill";
|
||||||
import "web-streams-polyfill/ponyfill"; // to support streams API for older browsers
|
import "web-streams-polyfill/ponyfill"; // to support streams API for older browsers
|
||||||
|
@ -158,7 +158,7 @@ export default abstract class Exporter {
|
||||||
|
|
||||||
while (limit) {
|
while (limit) {
|
||||||
const eventsPerCrawl = Math.min(limit, 1000);
|
const eventsPerCrawl = Math.min(limit, 1000);
|
||||||
const res: any = await this.client.createMessagesRequest(this.room.roomId, prevToken, eventsPerCrawl, "b");
|
const res: any = await this.client.createMessagesRequest(this.room.roomId, prevToken, eventsPerCrawl, Direction.Backward);
|
||||||
|
|
||||||
if (this.cancelled) {
|
if (this.cancelled) {
|
||||||
this.cleanUp();
|
this.cleanUp();
|
||||||
|
|
Loading…
Reference in New Issue