Skip to content

Commit

Permalink
fix(audio-configs) Fix startWithAudioMuted overrriding startSilent (j…
Browse files Browse the repository at this point in the history
  • Loading branch information
horymury authored Sep 27, 2022
1 parent 02f5987 commit ca54533
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion conference.js
Original file line number Diff line number Diff line change
Expand Up @@ -791,7 +791,6 @@ export default {
startAudioOnly: config.startAudioOnly,
startScreenSharing: config.startScreenSharing,
startWithAudioMuted: getStartWithAudioMuted(APP.store.getState())
|| config.startSilent
|| isUserInteractionRequiredForUnmute(APP.store.getState()),
startWithVideoMuted: getStartWithVideoMuted(APP.store.getState())
|| isUserInteractionRequiredForUnmute(APP.store.getState())
Expand Down
3 changes: 2 additions & 1 deletion react/features/base/media/functions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ function _isVideoMutedByAuthority(
* @returns {boolean} - The computed startWithAudioMuted value that will be used.
*/
export function getStartWithAudioMuted(stateful: IStateful) {
return Boolean(getPropertyValue(stateful, 'startWithAudioMuted', START_WITH_AUDIO_VIDEO_MUTED_SOURCES));
return Boolean(getPropertyValue(stateful, 'startWithAudioMuted', START_WITH_AUDIO_VIDEO_MUTED_SOURCES))
|| Boolean(getPropertyValue(stateful, 'startSilent', START_WITH_AUDIO_VIDEO_MUTED_SOURCES));
}

/**
Expand Down

0 comments on commit ca54533

Please sign in to comment.