Skip to content

Commit 39465b5

Browse files
authored
Go back to forEach in collectcallstats (#2481)
Older typescript library doesn't know about .values() on the stats object, so it was failing in react sdk which had an older typescript. matrix-org/matrix-react-sdk#8935 was an attempt to upgrade it but did not seem to be helping on CI, despite being fine locally.
1 parent a745c67 commit 39465b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/webrtc/call.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -708,9 +708,9 @@ export class MatrixCall extends TypedEventEmitter<CallEvent, CallEventHandlerMap
708708

709709
const statsReport = await this.peerConn.getStats();
710710
const stats = [];
711-
for (const item of statsReport.values()) {
711+
statsReport.forEach(item => {
712712
stats.push(item);
713-
}
713+
});
714714

715715
return stats;
716716
}

0 commit comments

Comments
 (0)