Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
feat(sounds) skip playing back sounds when leaving a conference
Saúl Ibarra Corretgéc11f5d36ea78
diff --git a/react/features/base/sounds/actions.ts b/react/features/base/sounds/actions.tsindex c0ca1fa098..b4f94815b0 100644--- a/react/features/base/sounds/actions.ts+++ b/react/features/base/sounds/actions.ts@@ -1,4 +1,5 @@import { IStore } from '../../app/types';+import { getConferenceState } from '../conference/functions';import { Sounds } from '../config/configType';import { AudioElement } from '../media/components/AbstractAudio';@@ -68,7 +69,14 @@ export function _removeAudioElement(soundId: string) {*/export function playSound(soundId: string) {return (dispatch: IStore['dispatch'], getState: IStore['getState']) => {- const disabledSounds = getDisabledSounds(getState());+ const state = getState();+ const disabledSounds = getDisabledSounds(state);+ const { leaving } = getConferenceState(state);++ // Skip playing sounds when leaving, to avoid hearing that recording has stopped and so on.+ if (leaving) {+ return;+ }if (!disabledSounds.includes(soundId as Sounds) && !disabledSounds.find(id => soundId.startsWith(id))) {dispatch({