|
@@ -339,7 +339,12 @@ function _localParticipantLeft({ dispatch }, next, action) {
|
339
|
339
|
*/
|
340
|
340
|
function _maybePlaySounds({ getState, dispatch }, action) {
|
341
|
341
|
const state = getState();
|
342
|
|
- const { startAudioMuted } = state['features/base/config'];
|
|
342
|
+ const { startAudioMuted, disableJoinLeaveSounds } = state['features/base/config'];
|
|
343
|
+
|
|
344
|
+ // If we have join/leave sounds disabled, don't play anything.
|
|
345
|
+ if (disableJoinLeaveSounds) {
|
|
346
|
+ return;
|
|
347
|
+ }
|
343
|
348
|
|
344
|
349
|
// We're not playing sounds for local participant
|
345
|
350
|
// nor when the user is joining past the "startAudioMuted" limit.
|