config: remove old backwards compatibility shim
It was added for
3ea2f00578
over 2 years ago. That's long enough!
This commit is contained in:
parent
aca0469bd0
commit
35f934e197
|
@ -158,23 +158,16 @@ function _setConfig(state, { config }) {
|
||||||
* supported by jitsi-meet.
|
* supported by jitsi-meet.
|
||||||
*/
|
*/
|
||||||
function _translateLegacyConfig(oldValue: Object) {
|
function _translateLegacyConfig(oldValue: Object) {
|
||||||
// jitsi/jitsi-meet#3ea2f005787c9f49c48febaeed9dc0340fe0a01b
|
|
||||||
|
|
||||||
let newValue = oldValue;
|
let newValue = oldValue;
|
||||||
|
|
||||||
const oldConfigToNewConfig = {
|
const oldConfigToNewConfig = {
|
||||||
p2p: [
|
|
||||||
[ 'backToP2PDelay', 'backToP2PDelay' ],
|
|
||||||
[ 'enableP2P', 'enabled' ],
|
|
||||||
[ 'p2pStunServers', 'stunServers' ]
|
|
||||||
],
|
|
||||||
analytics: [
|
analytics: [
|
||||||
[ 'analyticsScriptUrls', 'scriptURLs' ],
|
[ 'analyticsScriptUrls', 'scriptURLs' ],
|
||||||
[ 'googleAnalyticsTrackingId', 'googleAnalyticsTrackingId' ]
|
[ 'googleAnalyticsTrackingId', 'googleAnalyticsTrackingId' ]
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
|
|
||||||
// Translate the old config properties into the new config.p2p properties.
|
// Translate the old config properties into the new config properties.
|
||||||
Object.keys(oldConfigToNewConfig).forEach(section => {
|
Object.keys(oldConfigToNewConfig).forEach(section => {
|
||||||
if (typeof oldValue[section] !== 'object') {
|
if (typeof oldValue[section] !== 'object') {
|
||||||
newValue = set(newValue, section, {});
|
newValue = set(newValue, section, {});
|
||||||
|
|
Loading…
Reference in New Issue