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
fix(external-api) send AUDIO_MUTED_CHANGED event only when value changed
tmoldovan8x873fb586d593d
diff --git a/react/features/mobile/external-api/middleware.js b/react/features/mobile/external-api/middleware.jsindex 3a4a24eb08..991954685c 100644--- a/react/features/mobile/external-api/middleware.js+++ b/react/features/mobile/external-api/middleware.js@@ -93,6 +93,7 @@ const eventEmitter = new NativeEventEmitter(ExternalAPI);* @returns {Function}*/MiddlewareRegistry.register(store => next => action => {+ const oldAudioMuted = store.getState()['features/base/media'].audio.muted;const result = next(action);const { type } = action;@@ -198,12 +199,14 @@ MiddlewareRegistry.register(store => next => action => {break;case SET_AUDIO_MUTED:- sendEvent(- store,- 'AUDIO_MUTED_CHANGED',- /* data */ {- muted: action.muted- });+ if (action.muted !== oldAudioMuted) {+ sendEvent(+ store,+ 'AUDIO_MUTED_CHANGED',+ /* data */ {+ muted: action.muted+ });+ }break;case SET_PAGE_RELOAD_OVERLAY_CANCELED: