You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-12-02 17:02:31 +03:00
Rename so that VS Code spell checker shutsup
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
@@ -1904,17 +1904,19 @@ export class MatrixCall extends EventEmitter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private async addIceCandidates(candidates: RTCIceCandidate[]) {
|
private async addIceCandidates(candidates: RTCIceCandidate[]) {
|
||||||
for (const cand of candidates) {
|
for (const candidate of candidates) {
|
||||||
if (
|
if (
|
||||||
(cand.sdpMid === null || cand.sdpMid === undefined) &&
|
(candidate.sdpMid === null || candidate.sdpMid === undefined) &&
|
||||||
(cand.sdpMLineIndex === null || cand.sdpMLineIndex === undefined)
|
(candidate.sdpMLineIndex === null || candidate.sdpMLineIndex === undefined)
|
||||||
) {
|
) {
|
||||||
logger.debug("Ignoring remote ICE candidate with no sdpMid or sdpMLineIndex");
|
logger.debug("Ignoring remote ICE candidate with no sdpMid or sdpMLineIndex");
|
||||||
continue;
|
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 {
|
try {
|
||||||
await this.peerConn.addIceCandidate(cand);
|
await this.peerConn.addIceCandidate(candidate);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
if (!this.ignoreOffer) {
|
if (!this.ignoreOffer) {
|
||||||
logger.info("Failed to add remote ICE candidate", err);
|
logger.info("Failed to add remote ICE candidate", err);
|
||||||
|
|||||||
Reference in New Issue
Block a user