From ef1e867deec425a54090e2f4496eccc9dde4fbb6 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Tue, 23 Feb 2021 19:20:58 +0100 Subject: [PATCH] no need for keys in the iteration --- src/matrix/Session.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/matrix/Session.js b/src/matrix/Session.js index 4da510f6..23f2c03a 100644 --- a/src/matrix/Session.js +++ b/src/matrix/Session.js @@ -328,7 +328,7 @@ export class Session { const operations = await opsTxn.operations.getAll(); const operationsByScope = groupBy(operations, o => o.scope); - for (const [, room] of this._rooms) { + for (const room of this._rooms.values()) { let roomOperationsByType; const roomOperations = operationsByScope.get(room.id); if (roomOperations) {