You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-10 09:22:25 +03:00
allow a setting controller to validate and revert a change (asynchronously)
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user