Make the controller work for notifications
Signed-off-by: Travis Ralston <travpc@gmail.com>
This commit is contained in:
parent
7ce4316cc8
commit
e31c89d360
3 changed files with 44 additions and 39 deletions
|
@ -261,11 +261,11 @@ export default class SettingsStore {
|
|||
throw new Error("User cannot set " + settingName + " at " + level + " in " + roomId);
|
||||
}
|
||||
|
||||
return handler.setValue(settingName, roomId, value).finally((() => {
|
||||
return handler.setValue(settingName, roomId, value).finally(() => {
|
||||
const controller = SETTINGS[settingName].controller;
|
||||
if (!controller) return;
|
||||
controller.onChange(level, roomId, value);
|
||||
}));
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue