From 4dae4b49cb2a60d2fc676168ce0c97b7adcfa0e3 Mon Sep 17 00:00:00 2001 From: Soumik Pradhan Date: Wed, 3 Aug 2022 22:26:32 +0000 Subject: [PATCH] Send stream update to main channel once --- src/sdk/conference/client.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/sdk/conference/client.js b/src/sdk/conference/client.js index 48d2d922..7954741f 100644 --- a/src/sdk/conference/client.js +++ b/src/sdk/conference/client.js @@ -161,9 +161,9 @@ export const ConferenceClient = function(config, signalingImpl) { // Broadcast audio/video update status to channel so specific events can be fired on publication or subscription. if (data.data.field === 'audio.status' || data.data.field === 'video.status') { - channels.forEach((c) => { - c.onMessage(notification, data); - }); + if (mainChannel) { + mainChannel.onMessage(notification, data); + } } else if (data.data.field === 'activeInput') { fireActiveAudioInputChange(data); } else if (data.data.field === 'video.layout') {