fix: always display transcription (#12325)

* feat: always display transcription

* fix: unused import
pull/12622/head jitsi-meet_8114
Charles Zablit 3 years ago committed by GitHub
parent 744960bb1a
commit 3cbf160f2b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      react/features/subtitles/middleware.ts

@ -1,4 +1,3 @@
import i18next from 'i18next';
import { AnyAction } from 'redux';
import { IStore } from '../app/types';
@ -117,7 +116,7 @@ function _endpointMessageReceived({ dispatch, getState }: IStore, next: Function
newTranscriptMessage));
} else if (json.type === JSON_TYPE_TRANSCRIPTION_RESULT
&& i18next.language === translationLanguage) {
&& json.language.slice(0, 2) === translationLanguage) {
// Displays interim and final results without any translation if
// translations are disabled.

Loading…
Cancel
Save