fix(audio-only) Fix an issue where 'startAudioOnly' in config is not applied to web clients.

This commit is contained in:
Jaya Allamsetty 2023-01-10 15:36:33 -05:00
parent 2dbb3c10e2
commit 122e80dcf1
1 changed files with 4 additions and 1 deletions

View File

@ -273,7 +273,10 @@ function _setRoom({ dispatch, getState }, next, action) {
// The following don't have complications around whether
// they are defined or not:
jwt: false,
settings: true
// We need to look for 'startAudioOnly' in settings only for react native clients. Otherwise, the
// default value from ISettingsState (false) will override the value set in config for web clients.
settings: typeof APP === 'undefined'
}));
sendAnalytics(createStartAudioOnlyEvent(audioOnly));