You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-08 21:42:24 +03:00
Only enumerate settings handlers which are supported currently
This commit is contained in:
@@ -564,7 +564,7 @@ export default class SettingsStore {
|
||||
const handlers = {};
|
||||
for (const level of SETTINGS[settingName].supportedLevels) {
|
||||
if (!LEVEL_HANDLERS[level]) throw new Error("Unexpected level " + level);
|
||||
handlers[level] = LEVEL_HANDLERS[level];
|
||||
if (SettingsStore.isLevelSupported(level)) handlers[level] = LEVEL_HANDLERS[level];
|
||||
}
|
||||
|
||||
// Always support 'default'
|
||||
|
||||
Reference in New Issue
Block a user