EventIndex: Fix some lint issues.

pull/21833/head
Damir Jelić 2020-05-21 12:35:47 +02:00
parent f802668fff
commit ea35fc2881
1 changed files with 6 additions and 6 deletions

View File

@ -244,8 +244,8 @@ export default class EventIndex extends EventEmitter {
if (room === null) return;
if (!MatrixClientPeg.get().isRoomEncrypted(room.roomId)) return;
console.log("EventIndex: Added checkpoint because of a limited timeline",
backwardsCheckpoint);
console.log("EventIndex: Adding a checkpoint because of a limited timeline",
room.roomId);
this.addRoomCheckpoint(room.roomId, false);
}
@ -314,7 +314,7 @@ export default class EventIndex extends EventEmitter {
}
async addEventsFromLiveTimeline(timeline) {
let events = timeline.getEvents();
const events = timeline.getEvents();
for (let i = 0; i < events.length; i++) {
const ev = events[i];
@ -330,7 +330,7 @@ export default class EventIndex extends EventEmitter {
if (!room) return;
const timeline = room.getLiveTimeline();
let token = timeline.getPaginationToken("b");
const token = timeline.getPaginationToken("b");
if (!token) {
// The room doesn't contain any tokens, meaning the live timeline