mirror of https://github.com/vector-im/riot-web
Merge remote-tracking branch 'origin/develop' into develop
commit
a4cdbd5fd4
|
@ -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];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue