Skip to content
This repository has been archived by the owner on Oct 25, 2024. It is now read-only.

Fix mute and unmute event triggering multiple times #554

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/sdk/conference/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -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') {
Expand Down