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(config) Fix recording config backwards compatibility (#11953)

Robert Pintiliiefa0a132c423
diff --git a/react/features/base/config/reducer.ts b/react/features/base/config/reducer.ts
index 986c6f0459..385edc983a 100644
--- a/react/features/base/config/reducer.ts
+++ b/react/features/base/config/reducer.ts
@@ -407,13 +407,15 @@ function _translateLegacyConfig(oldValue: IConfig) {
}
newValue.recordingService = newValue.recordingService || {};
- if (oldValue.fileRecordingsServiceEnabled !== undefined) {
+ if (oldValue.fileRecordingsServiceEnabled !== undefined
+ && newValue.recordingService.enabled === undefined) {
newValue.recordingService = {
...newValue.recordingService,
enabled: oldValue.fileRecordingsServiceEnabled
};
}
- if (oldValue.fileRecordingsServiceSharingEnabled !== undefined) {
+ if (oldValue.fileRecordingsServiceSharingEnabled !== undefined
+ && newValue.recordingService.sharingEnabled === undefined) {
newValue.recordingService = {
...newValue.recordingService,
sharingEnabled: oldValue.fileRecordingsServiceSharingEnabled
diff --git a/react/features/recording/components/Recording/StartRecordingDialogContent.js b/react/features/recording/components/Recording/StartRecordingDialogContent.js
index db0d2f024a..b34422c780 100644
--- a/react/features/recording/components/Recording/StartRecordingDialogContent.js
+++ b/react/features/recording/components/Recording/StartRecordingDialogContent.js
@@ -760,7 +760,7 @@ function _mapStateToProps(state) {
return {
..._abstractMapStateToProps(state),
isVpaas: isVpaasMeeting(state),
- _hideStorageWarning: state['features/base/config'].recording?.hideStorageWarning,
+ _hideStorageWarning: state['features/base/config'].recordingService?.hideStorageWarning,
_localRecordingEnabled: !state['features/base/config'].localRecording?.disable,
_localRecordingSelfEnabled: !state['features/base/config'].localRecording?.disableSelfRecording,
_localRecordingNoNotification: !state['features/base/config'].localRecording?.notifyAllParticipants,