|
@@ -6,6 +6,7 @@ import { isJwtFeatureEnabled } from '../base/jwt/functions';
|
6
|
6
|
import JitsiMeetJS from '../base/lib-jitsi-meet';
|
7
|
7
|
import { isLocalParticipantModerator } from '../base/participants/functions';
|
8
|
8
|
import MiddlewareRegistry from '../base/redux/MiddlewareRegistry';
|
|
9
|
+import { TRANSCRIBER_JOINED } from '../transcribing/actionTypes';
|
9
|
10
|
|
10
|
11
|
import {
|
11
|
12
|
SET_REQUESTING_SUBTITLES,
|
|
@@ -80,6 +81,15 @@ MiddlewareRegistry.register(store => next => action => {
|
80
|
81
|
_requestingSubtitlesChange(store, toggledValue, state._language);
|
81
|
82
|
break;
|
82
|
83
|
}
|
|
84
|
+ case TRANSCRIBER_JOINED: {
|
|
85
|
+ const { transcription } = store.getState()['features/base/config'];
|
|
86
|
+
|
|
87
|
+ if (transcription?.autoCaptionOnTranscribe) {
|
|
88
|
+ store.dispatch(setRequestingSubtitles(true));
|
|
89
|
+ }
|
|
90
|
+
|
|
91
|
+ break;
|
|
92
|
+ }
|
83
|
93
|
case SET_REQUESTING_SUBTITLES:
|
84
|
94
|
_requestingSubtitlesChange(store, action.enabled, action.language);
|
85
|
95
|
break;
|