From fd5b2aa7bb0ff31ff84e614ca07c823b9862dd59 Mon Sep 17 00:00:00 2001 From: Bruno Windels <274386+bwindels@users.noreply.github.com> Date: Mon, 11 Apr 2022 16:29:46 +0200 Subject: [PATCH] only create datachannel on side that sends invite --- src/matrix/calls/PeerCall.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/matrix/calls/PeerCall.ts b/src/matrix/calls/PeerCall.ts index 87b96139..fc37807d 100644 --- a/src/matrix/calls/PeerCall.ts +++ b/src/matrix/calls/PeerCall.ts @@ -172,9 +172,6 @@ export class PeerCall implements IDisposable { for (const t of this.localMedia.tracks) { this.peerConnection.addTrack(t); } - if (this.localMedia.dataChannelOptions) { - this._dataChannel = this.peerConnection.createDataChannel(this.localMedia.dataChannelOptions); - } let myAnswer: RTCSessionDescriptionInit; try { myAnswer = await this.peerConnection.createAnswer();