mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2025-12-30 11:22:31 +00:00
add option for disabling join/leave sounds (#8596)
* add option for disabling join/leave sounds * document disableJoinLeaveSounds and add it to whitelist
This commit is contained in:
@@ -339,7 +339,12 @@ function _localParticipantLeft({ dispatch }, next, action) {
|
||||
*/
|
||||
function _maybePlaySounds({ getState, dispatch }, action) {
|
||||
const state = getState();
|
||||
const { startAudioMuted } = state['features/base/config'];
|
||||
const { startAudioMuted, disableJoinLeaveSounds } = state['features/base/config'];
|
||||
|
||||
// If we have join/leave sounds disabled, don't play anything.
|
||||
if (disableJoinLeaveSounds) {
|
||||
return;
|
||||
}
|
||||
|
||||
// We're not playing sounds for local participant
|
||||
// nor when the user is joining past the "startAudioMuted" limit.
|
||||
|
||||
Reference in New Issue
Block a user