|
|
|
@ -66,11 +66,11 @@ ReducerRegistry.register('features/base/config', (state = _getInitialState(), ac |
|
|
|
|
error: undefined, |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* The URL of the location associated with/configured by this |
|
|
|
|
* configuration. |
|
|
|
|
* |
|
|
|
|
* @type URL |
|
|
|
|
*/ |
|
|
|
|
* The URL of the location associated with/configured by this |
|
|
|
|
* configuration. |
|
|
|
|
* |
|
|
|
|
* @type URL |
|
|
|
|
*/ |
|
|
|
|
locationURL: action.locationURL |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
@ -84,11 +84,11 @@ ReducerRegistry.register('features/base/config', (state = _getInitialState(), ac |
|
|
|
|
if (state.locationURL === action.locationURL) { |
|
|
|
|
return { |
|
|
|
|
/** |
|
|
|
|
* The {@link Error} which prevented the loading of the |
|
|
|
|
* configuration of the associated {@code locationURL}. |
|
|
|
|
* |
|
|
|
|
* @type Error |
|
|
|
|
*/ |
|
|
|
|
* The {@link Error} which prevented the loading of the |
|
|
|
|
* configuration of the associated {@code locationURL}. |
|
|
|
|
* |
|
|
|
|
* @type Error |
|
|
|
|
*/ |
|
|
|
|
error: action.error |
|
|
|
|
}; |
|
|
|
|
} |
|
|
|
@ -206,6 +206,25 @@ function _translateLegacyConfig(oldValue: Object) { |
|
|
|
|
}; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
newValue.disabledSounds = newValue.disabledSounds || []; |
|
|
|
|
|
|
|
|
|
if (oldValue.disableJoinLeaveSounds) { |
|
|
|
|
newValue.disabledSounds.unshift('PARTICIPANT_LEFT_SOUND', 'PARTICIPANT_JOINED_SOUND'); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (oldValue.disableRecordAudioNotification) { |
|
|
|
|
newValue.disabledSounds.unshift( |
|
|
|
|
'RECORDING_ON_SOUND', |
|
|
|
|
'RECORDING_OFF_SOUND', |
|
|
|
|
'LIVE_STREAMING_ON_SOUND', |
|
|
|
|
'LIVE_STREAMING_OFF_SOUND' |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (oldValue.disableIncomingMessageSound) { |
|
|
|
|
newValue.disabledSounds.unshift('INCOMING_MSG_SOUND'); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (oldValue.stereo || oldValue.opusMaxAverageBitrate) { |
|
|
|
|
newValue.audioQuality = { |
|
|
|
|
opusMaxAverageBitrate: oldValue.audioQuality?.opusMaxAverageBitrate ?? oldValue.opusMaxAverageBitrate, |
|
|
|
|