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(iframeAPI): Fix setSubtitles command language param.

Дамян Минков97837935143a
diff --git a/modules/API/API.js b/modules/API/API.js
index 28fa849fb7..088da29461 100644
--- a/modules/API/API.js
+++ b/modules/API/API.js
@@ -492,7 +492,8 @@ function initCommands() {
APP.store.dispatch(toggleRequestingSubtitles());
},
'set-subtitles': (enabled, displaySubtitles, language) => {
- APP.store.dispatch(setRequestingSubtitles(enabled, displaySubtitles, language));
+ APP.store.dispatch(setRequestingSubtitles(
+ enabled, displaySubtitles, language ? `translation-languages:${language}` : null));
},
'toggle-tile-view': () => {
sendAnalytics(createApiEvent('tile-view.toggled'));