pull/21833/head
Bruno Windels 2018-08-13 16:51:37 +02:00
parent 84b74247e6
commit 3e9d1342e8
2 changed files with 3 additions and 2 deletions

View File

@ -527,4 +527,4 @@ export async function flushStorageAndReload() {
await cli.clearStores();
// start the session again without clearing storage
_doSetLoggedIn(credentials, false);
}
}

View File

@ -248,7 +248,7 @@ export default class SettingsStore {
if (actualValue !== undefined && actualValue !== null) return actualValue;
return calculatedValue;
}
/* eslint-disable valid-jsdoc */
/**
* Sets the value for a setting. The room ID is optional if the setting is not being
* set for a particular room, otherwise it should be supplied. The value may be null
@ -260,6 +260,7 @@ export default class SettingsStore {
* @param {*} value The new value of the setting, may be null.
* @return {Promise} Resolves when the setting has been changed.
*/
/* eslint-enable valid-jsdoc */
static async setValue(settingName, roomId, level, value) {
// Verify that the setting is actually a setting
if (!SETTINGS[settingName]) {