Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

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

Jaya Allamsetty122e80dcf1a2
diff --git a/react/features/base/media/middleware.any.js b/react/features/base/media/middleware.any.js
index c441decb3b..23b2d6f706 100644
--- a/react/features/base/media/middleware.any.js
+++ b/react/features/base/media/middleware.any.js
@@ -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));