Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

fix(subtitles) fix skipping transcription messages

Saúl Ibarra Corretgé1827610fc1ab
diff --git a/react/features/subtitles/middleware.ts b/react/features/subtitles/middleware.ts
index 760aa82dd4..e717d12e4f 100644
--- a/react/features/subtitles/middleware.ts
+++ b/react/features/subtitles/middleware.ts
@@ -196,7 +196,7 @@ function _endpointMessageReceived(store: IStore, next: Function, action: AnyActi
// Regex to filter out all possible country codes after language code:
// this should catch all notations like 'en-GB' 'en_GB' and 'enGB'
// and be independent of the country code length
- if (_getPrimaryLanguageCode(json.language) !== _getPrimaryLanguageCode(language)) {
+ if (!language || (_getPrimaryLanguageCode(json.language) !== _getPrimaryLanguageCode(language))) {
return next(action);
}