fix(config) Fix recording config backwards compatibility (#11953)
Overwrite the new flag with the old one only if the new one is not set Fix hideStorageWarning config
This commit is contained in:
parent
083b009eba
commit
efa0a132c4
|
@ -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
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue