From 35f934e197e4f64f4eb893c36e7446f1958e901b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= Date: Thu, 25 Jul 2019 10:59:03 +0200 Subject: [PATCH] config: remove old backwards compatibility shim It was added for https://github.com/jitsi/jitsi-meet/commit/3ea2f005787c9f49c48febaeed9dc0340fe0a01b over 2 years ago. That's long enough! --- react/features/base/config/reducer.js | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/react/features/base/config/reducer.js b/react/features/base/config/reducer.js index 440423b63..a20988b84 100644 --- a/react/features/base/config/reducer.js +++ b/react/features/base/config/reducer.js @@ -158,23 +158,16 @@ function _setConfig(state, { config }) { * supported by jitsi-meet. */ function _translateLegacyConfig(oldValue: Object) { - // jitsi/jitsi-meet#3ea2f005787c9f49c48febaeed9dc0340fe0a01b - let newValue = oldValue; const oldConfigToNewConfig = { - p2p: [ - [ 'backToP2PDelay', 'backToP2PDelay' ], - [ 'enableP2P', 'enabled' ], - [ 'p2pStunServers', 'stunServers' ] - ], analytics: [ [ 'analyticsScriptUrls', 'scriptURLs' ], [ '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 => { if (typeof oldValue[section] !== 'object') { newValue = set(newValue, section, {});