You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-05 23:10:41 +03:00
Honour the (now legacy) enableLabs flag
This commit is contained in:
@@ -36,9 +36,16 @@ export default {
|
||||
getLabsFeatures() {
|
||||
const featuresConfig = SdkConfig.get()['features'] || {};
|
||||
|
||||
// The old flag: honourned for backwards compat
|
||||
const enableLabs = SdkConfig.get()['enableLabs'];
|
||||
|
||||
return FEATURES.filter((f) => {
|
||||
if (enableLabs) {
|
||||
return true;
|
||||
}
|
||||
|
||||
const sdkConfigValue = featuresConfig[f.id];
|
||||
if (!['enable', 'disable'].includes(sdkConfigValue)) {
|
||||
if (sdkConfigValue === 'labs') {
|
||||
return true;
|
||||
}
|
||||
}).map((f) => {
|
||||
|
||||
Reference in New Issue
Block a user