mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
no need for keys in the iteration
This commit is contained in:
parent
67ddcaa468
commit
ef1e867dee
@ -328,7 +328,7 @@ export class Session {
|
|||||||
const operations = await opsTxn.operations.getAll();
|
const operations = await opsTxn.operations.getAll();
|
||||||
const operationsByScope = groupBy(operations, o => o.scope);
|
const operationsByScope = groupBy(operations, o => o.scope);
|
||||||
|
|
||||||
for (const [, room] of this._rooms) {
|
for (const room of this._rooms.values()) {
|
||||||
let roomOperationsByType;
|
let roomOperationsByType;
|
||||||
const roomOperations = operationsByScope.get(room.id);
|
const roomOperations = operationsByScope.get(room.id);
|
||||||
if (roomOperations) {
|
if (roomOperations) {
|
||||||
|
Loading…
Reference in New Issue
Block a user