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(recording): base the dialog title on the transcription capability

damencho65b84700e7cd
diff --git a/react/features/recording/components/Recording/AbstractStartRecordingDialog.ts b/react/features/recording/components/Recording/AbstractStartRecordingDialog.ts
index cfb0b8a9cd..bd13999b7b 100644
--- a/react/features/recording/components/Recording/AbstractStartRecordingDialog.ts
+++ b/react/features/recording/components/Recording/AbstractStartRecordingDialog.ts
@@ -14,7 +14,7 @@ import { getNewAccessToken, isEnabled as isDropboxEnabled } from '../../../dropb
import { getDropboxData } from '../../../dropbox/functions.any';
import { showErrorNotification } from '../../../notifications/actions';
import { setRequestingSubtitles } from '../../../subtitles/actions.any';
-import { isRecorderTranscriptionsRunning } from '../../../transcribing/functions';
+import { canAddTranscriber, isRecorderTranscriptionsRunning } from '../../../transcribing/functions';
import {
setSelectedRecordingService,
setStartRecordingIntent,
@@ -46,6 +46,11 @@ export interface IProps extends WithTranslation {
*/
_autoTranscribeOnRecord: boolean;
+ /**
+ * Whether the local participant can start/stop transcription.
+ */
+ _canTranscribe: boolean;
+
/**
* The {@code JitsiConference} for the current conference.
*/
@@ -650,6 +655,7 @@ export function mapStateToProps(state: IReduxState, _ownProps: any) {
return {
_appKey: dropbox.appKey ?? '',
_autoTranscribeOnRecord: shouldAutoTranscribeOnRecord(state),
+ _canTranscribe: canAddTranscriber(state),
_conference: state['features/base/conference'].conference,
_displaySubtitles,
_fileRecordingSession: getActiveSession(state, JitsiRecordingConstants.mode.FILE),
diff --git a/react/features/recording/components/Recording/web/RecordingTranscriptionDialog.tsx b/react/features/recording/components/Recording/web/RecordingTranscriptionDialog.tsx
index 769e2bb957..8d20c65031 100644
--- a/react/features/recording/components/Recording/web/RecordingTranscriptionDialog.tsx
+++ b/react/features/recording/components/Recording/web/RecordingTranscriptionDialog.tsx
@@ -72,9 +72,9 @@ class RecordingTranscriptionDialog extends AbstractStartRecordingDialog {
userName
} = this.state;
const {
+ _canTranscribe,
_fileRecordingsServiceEnabled,
_fileRecordingsServiceSharingEnabled,
- _isModerator,
_recordingRunning,
_transcriptionRunning
} = this.props;
@@ -90,7 +90,7 @@ class RecordingTranscriptionDialog extends AbstractStartRecordingDialog {
disabled: this.isStartRecordingDisabled()
}}
onSubmit = { this._onSubmit }
- titleKey = { _isModerator ? 'dialog.recordAndTranscribe' : 'toolbar.record' }>
+ titleKey = { _canTranscribe ? 'dialog.recordAndTranscribe' : 'toolbar.record' }>
<StartRecordingDialogContent
fileRecordingsServiceEnabled = { _fileRecordingsServiceEnabled }
fileRecordingsServiceSharingEnabled = { _fileRecordingsServiceSharingEnabled }