From 775c3465bba8c8f217c7449ea9a25a2a92ad6809 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0imon=20Brandner?= Date: Tue, 3 Aug 2021 10:05:05 +0200 Subject: [PATCH] Rename so that VS Code spell checker shutsup MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Šimon Brandner --- src/webrtc/call.ts | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/webrtc/call.ts b/src/webrtc/call.ts index 05a1c476e..dd0043d25 100644 --- a/src/webrtc/call.ts +++ b/src/webrtc/call.ts @@ -1904,17 +1904,19 @@ export class MatrixCall extends EventEmitter { } private async addIceCandidates(candidates: RTCIceCandidate[]) { - for (const cand of candidates) { + for (const candidate of candidates) { if ( - (cand.sdpMid === null || cand.sdpMid === undefined) && - (cand.sdpMLineIndex === null || cand.sdpMLineIndex === undefined) + (candidate.sdpMid === null || candidate.sdpMid === undefined) && + (candidate.sdpMLineIndex === null || candidate.sdpMLineIndex === undefined) ) { logger.debug("Ignoring remote ICE candidate with no sdpMid or sdpMLineIndex"); continue; } - logger.debug("Call " + this.callId + " got remote ICE " + cand.sdpMid + " candidate: " + cand.candidate); + logger.debug( + "Call " + this.callId + " got remote ICE " + candidate.sdpMid + " candidate: " + candidate.candidate, + ); try { - await this.peerConn.addIceCandidate(cand); + await this.peerConn.addIceCandidate(candidate); } catch (err) { if (!this.ignoreOffer) { logger.info("Failed to add remote ICE candidate", err);