Do not try to recover mute state when joining listenonly
Prevent toggleMute api call to be called for listenonly This has no effect to the end user, but avoids unnecessary server calls
This commit is contained in:
parent
e70470e975
commit
fc1401ab53
@ -33,7 +33,7 @@ const audioEventHandler = (event) => {
|
||||
|
||||
switch (event.name) {
|
||||
case 'started':
|
||||
recoverMicState();
|
||||
if (!event.isListenOnly) recoverMicState();
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
@ -342,7 +342,10 @@ class AudioManager {
|
||||
this.notify(this.intl.formatMessage(this.messages.info.JOINED_AUDIO));
|
||||
logger.info({ logCode: 'audio_joined' }, 'Audio Joined');
|
||||
if (STATS.enabled) this.monitor();
|
||||
this.audioEventHandler({ name: 'started' });
|
||||
this.audioEventHandler({
|
||||
name: 'started',
|
||||
isListenOnly: this.isListenOnly,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user