From d0759a537bfdde4095ba0955cee8d5d1a7824176 Mon Sep 17 00:00:00 2001 From: David Baker Date: Fri, 13 Oct 2017 16:06:17 +0100 Subject: [PATCH] Fix the enableLabs flag, again We were showing the options but ignoring them --- src/UserSettingsStore.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/UserSettingsStore.js b/src/UserSettingsStore.js index d6b32fab5e..6f689735a7 100644 --- a/src/UserSettingsStore.js +++ b/src/UserSettingsStore.js @@ -202,7 +202,10 @@ export default { isFeatureEnabled: function(featureId: string): boolean { const featuresConfig = SdkConfig.get()['features']; - let sdkConfigValue = 'disable'; + // The old flag: honourned for backwards compat + const enableLabs = SdkConfig.get()['enableLabs']; + + let sdkConfigValue = enableLabs ? 'labs' : 'disable'; if (featuresConfig && featuresConfig[featureId] !== undefined) { sdkConfigValue = featuresConfig[featureId]; }