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: Skips setting language for transcriptions if not enabled.

Дамян Минков576fd0d3434e
diff --git a/react/features/transcribing/functions.js b/react/features/transcribing/functions.js
index fdbb0e500b..e10b29702e 100644
--- a/react/features/transcribing/functions.js
+++ b/react/features/transcribing/functions.js
@@ -15,7 +15,12 @@ const DEFAULT_TRANSCRIBER_LANG = 'en-US';
* @returns {string}
*/
export function determineTranscriptionLanguage(config: Object) {
- const { preferredTranscribeLanguage, transcribeWithAppLanguage = true } = config;
+ const { preferredTranscribeLanguage, transcribeWithAppLanguage = true, transcribingEnabled } = config;
+
+ // if transcriptions are not enabled nothing to determine
+ if (!transcribingEnabled) {
+ return undefined;
+ }
// Depending on the config either use the language that the app automatically detected or the hardcoded
// config BCP47 value.