allow a setting controller to validate and revert a change (asynchronously)

This commit is contained in:
Bruno Windels 2018-08-09 16:56:02 +02:00
parent 612077125e
commit 308a6b419e
3 changed files with 22 additions and 8 deletions

View file

@ -39,6 +39,10 @@ export default class SettingController {
return null; // no override
}
canChangeTo(level, roomId, newValue) {
return Promise.resolve(true);
}
/**
* Called when the setting value has been changed.
* @param {string} level The level at which the setting has been modified.