From cbc255a5d656cb03ec725375f7e4aa88d8edbce2 Mon Sep 17 00:00:00 2001 From: Philip Giuliani Date: Fri, 23 Jul 2021 14:24:10 +0200 Subject: [PATCH] Check for the transport id --- src/sdk/conference/channel.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/sdk/conference/channel.js b/src/sdk/conference/channel.js index 168df389..95f0ea10 100644 --- a/src/sdk/conference/channel.js +++ b/src/sdk/conference/channel.js @@ -1120,8 +1120,9 @@ export class ConferencePeerConnectionChannel extends EventDispatcher { if (this._publications.has(message.id)) { eventTargets.push(this._publications.get(message.id)); } - for (const subscription of this._subscriptions) { - if (message.id === subscription._audioTrackId || + for (const [_key, subscription] of this._subscriptions) { + if (message.id === subscription.transport.id || + message.id === subscription._audioTrackId || message.id === subscription._videoTrackId) { eventTargets.push(subscription); }