diff --git a/config.js b/config.js index 7dc071bc4988..885075689a03 100644 --- a/config.js +++ b/config.js @@ -413,9 +413,6 @@ var config = { // // ./src/react/features/transcribing/transcriber-langs.json. // preferredLanguage: 'en-US', - // // Disable start transcription for all participants. - // disableStartForAll: false, - // // Enables automatic turning on transcribing when recording is started // autoTranscribeOnRecord: false, // }, diff --git a/react/features/base/config/configType.ts b/react/features/base/config/configType.ts index 25fcf614fbf7..c8dd86419035 100644 --- a/react/features/base/config/configType.ts +++ b/react/features/base/config/configType.ts @@ -594,7 +594,6 @@ export interface IConfig { transcribingEnabled?: boolean; transcription?: { autoTranscribeOnRecord?: boolean; - disableStartForAll?: boolean; enabled?: boolean; preferredLanguage?: string; translationLanguages?: Array; diff --git a/react/features/transcribing/middleware.ts b/react/features/transcribing/middleware.ts index a4c7106af0a8..faba4ed5d459 100644 --- a/react/features/transcribing/middleware.ts +++ b/react/features/transcribing/middleware.ts @@ -4,7 +4,6 @@ import { PARTICIPANT_UPDATED } from '../base/participants/actionTypes'; import MiddlewareRegistry from '../base/redux/MiddlewareRegistry'; -import { toggleRequestingSubtitles } from '../subtitles/actions.any'; import { _TRANSCRIBER_JOINED, @@ -32,30 +31,14 @@ MiddlewareRegistry.register(({ dispatch, getState }) => next => action => { } = getState()['features/transcribing']; switch (action.type) { - case _TRANSCRIBER_JOINED: { + case _TRANSCRIBER_JOINED: notifyTranscribingStatusChanged(true); - const state = getState(); - const { transcription } = state['features/base/config']; - const { _requestingSubtitles } = state['features/subtitles']; - - if (!_requestingSubtitles && !transcription?.disableStartForAll) { - dispatch(toggleRequestingSubtitles()); - } break; - } - case _TRANSCRIBER_LEFT: { + case _TRANSCRIBER_LEFT: notifyTranscribingStatusChanged(false); - const state = getState(); - const { transcription } = state['features/base/config']; - const { _requestingSubtitles } = state['features/subtitles']; - - if (_requestingSubtitles && !transcription?.disableStartForAll) { - dispatch(toggleRequestingSubtitles()); - } break; - } case HIDDEN_PARTICIPANT_JOINED: if (action.displayName === TRANSCRIBER_DISPLAY_NAME) { dispatch(transcriberJoined(action.id));