Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit d7c3fc9

Browse files
authored
Merge pull request #1474 from matrix-org/dbkr/fix_enablelabs_again
Fix the enableLabs flag, again
2 parents 5214a86 + d0759a5 commit d7c3fc9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/UserSettingsStore.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,10 @@ export default {
202202
isFeatureEnabled: function(featureId: string): boolean {
203203
const featuresConfig = SdkConfig.get()['features'];
204204

205-
let sdkConfigValue = 'disable';
205+
// The old flag: honourned for backwards compat
206+
const enableLabs = SdkConfig.get()['enableLabs'];
207+
208+
let sdkConfigValue = enableLabs ? 'labs' : 'disable';
206209
if (featuresConfig && featuresConfig[featureId] !== undefined) {
207210
sdkConfigValue = featuresConfig[featureId];
208211
}

0 commit comments

Comments
 (0)