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) {