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: only access nested json values when corrent payload type (#3352)
Nik7e1d97665ab6
diff --git a/react/features/subtitles/middleware.js b/react/features/subtitles/middleware.jsindex 8c4eb8848e..8cbf497cca 100644--- a/react/features/subtitles/middleware.js+++ b/react/features/subtitles/middleware.js@@ -65,6 +65,12 @@ MiddlewareRegistry.register(store => next => action => {* @returns {Object} The value returned by {@code next(action)}.*/function _endpointMessageReceived({ dispatch, getState }, next, action) {+ if (!(action.json+ && (action.json.type === JSON_TYPE_TRANSCRIPTION_RESULT+ || action.json.type === JSON_TYPE_TRANSLATION_RESULT))) {+ return next(action);+ }+const json = action.json;const translationLanguage= getState()['features/base/conference'].conference