diff --git a/.gitignore b/.gitignore index af3a1757d..4c6a1c291 100644 --- a/.gitignore +++ b/.gitignore @@ -11,3 +11,4 @@ test/spec/api/*.js test/spec/core/*.js test/spec/platform/web/*.js test/support/**/*.js +.idea/ diff --git a/src/platform/web/session-manager/session-manager.ts b/src/platform/web/session-manager/session-manager.ts index 24a21a317..8ea8f7eb8 100644 --- a/src/platform/web/session-manager/session-manager.ts +++ b/src/platform/web/session-manager/session-manager.ts @@ -574,11 +574,7 @@ export class SessionManager { onicecandidate: (event) => { if (event.candidate?.type === "srflx") { this.logger.log(`[${inviter.id}] Found srflx ICE candidate, stop waiting...`); - // In sip.js > 0.20.1 this cast should be removed as iceGatheringComplete will be public - const sdh = sessionDescriptionHandler as SessionDescriptionHandler & { - iceGatheringComplete: () => void; - }; - sdh.iceGatheringComplete(); + sessionDescriptionHandler.iceGatheringComplete(); } } };