mirror of https://github.com/vector-im/riot-web
Fix inverted settings default value
Currently it doesn't matter what's set in the default property once the invertedSettingName property existspull/21833/head
parent
dbf2394668
commit
20f3ab0293
|
@ -42,7 +42,7 @@ for (const key of Object.keys(SETTINGS)) {
|
|||
if (SETTINGS[key].invertedSettingName) {
|
||||
// Invert now so that the rest of the system will invert it back
|
||||
// to what was intended.
|
||||
invertedDefaultSettings[key] = !SETTINGS[key].default;
|
||||
invertedDefaultSettings[SETTINGS[key].invertedSettingName] = !SETTINGS[key].default;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue