EventIndex: Use the correct variable to get the room id.

This commit is contained in:
Damir Jelić 2020-06-08 17:30:26 +02:00
parent 7a2bb4b112
commit 2c81d3eda8

View file

@ -200,7 +200,7 @@ export default class EventIndex extends EventEmitter {
if (!MatrixClientPeg.get().isRoomEncrypted(state.roomId)) return;
if (ev.getType() === "m.room.encryption" && !await this.isRoomIndexed(state.roomId)) {
console.log("EventIndex: Adding a checkpoint for a newly encrypted room", room.roomId);
console.log("EventIndex: Adding a checkpoint for a newly encrypted room", state.roomId);
this.addRoomCheckpoint(state.roomId, true);
}
}