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(transcribing): Use invite jigasi option only when async transcriptions are enabled.
damenchoe280d1d963e4
diff --git a/config.js b/config.jsindex d77f272d28..2e80e4bb68 100644--- a/config.js+++ b/config.js@@ -511,7 +511,8 @@ var config = {// // Note: Starting transcriptions from the recording dialog will still work.// disableClosedCaptions: false,- // // Whether to invite jigasi when backend transcriptions are enabled. By default, we invite it.+ // // Whether to invite jigasi when backend transcriptions are enabled (asyncTranscription is true in metadata).+ // // By default, we invite it.// inviteJigasiOnBackendTranscribing: true,// },diff --git a/react/features/subtitles/middleware.ts b/react/features/subtitles/middleware.tsindex 6ca01407ca..0c1136ae48 100644--- a/react/features/subtitles/middleware.ts+++ b/react/features/subtitles/middleware.ts@@ -351,7 +351,10 @@ function _requestingSubtitlesChange(const featureAllowed = isJwtFeatureEnabled(getState(), MEET_FEATURES.TRANSCRIPTION, false);// the default value for inviteJigasiOnBackendTranscribing is true (when undefined)- if (featureAllowed && (!backendRecordingOn || (transcription?.inviteJigasiOnBackendTranscribing ?? true))) {+ const inviteJigasi = conference?.getMetadataHandler()?.getMetadata()?.asyncTranscription+ ? (transcription?.inviteJigasiOnBackendTranscribing ?? true) : true;++ if (featureAllowed && (!backendRecordingOn || inviteJigasi)) {conference?.dial(TRANSCRIBER_DIAL_NUMBER).catch((e: any) => {logger.error('Error dialing', e);