Make reading settings synchronous
Signed-off-by: Travis Ralston <travpc@gmail.com>
This commit is contained in:
parent
989bdcf5fb
commit
23d159e21c
9 changed files with 56 additions and 71 deletions
|
@ -32,9 +32,7 @@ export default class DefaultSettingsHandler extends SettingsHandler {
|
|||
}
|
||||
|
||||
getValue(settingName, roomId) {
|
||||
const value = this._defaults[settingName];
|
||||
if (!value) return Promise.reject();
|
||||
return Promise.resolve(value);
|
||||
return this._defaults[settingName];
|
||||
}
|
||||
|
||||
setValue(settingName, roomId, newValue) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue