Apply changes to breadcrumbs setting live
This commit is contained in:
@@ -102,7 +102,7 @@ export const SETTINGS = {
|
||||
},
|
||||
"feature_room_breadcrumbs": {
|
||||
isFeature: true,
|
||||
displayName: _td("Show recent room avatars above the room list (refresh to apply changes)"),
|
||||
displayName: _td("Show recent room avatars above the room list"),
|
||||
supportedLevels: LEVELS_FEATURE,
|
||||
default: false,
|
||||
},
|
||||
|
||||
@@ -127,6 +127,6 @@ export default class DeviceSettingsHandler extends SettingsHandler {
|
||||
|
||||
_writeFeature(featureName, enabled) {
|
||||
localStorage.setItem("mx_labs_feature_" + featureName, enabled);
|
||||
this._watchers.notifyUpdate(featureName, null, enabled);
|
||||
this._watchers.notifyUpdate(featureName, null, SettingLevel.DEVICE, enabled);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user