1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2026-01-03 21:42:32 +03:00

document settingDefaults

This commit is contained in:
Bruno Windels
2019-05-31 15:00:26 +02:00
parent 512c9b2ac8
commit 9e4d8e7dfe

View File

@@ -51,6 +51,17 @@ Settings are the different options a user may set or experience in the applicati
}
```
Settings that support the config level can be set in the config file under the `settingDefaults` key (note that the "theme" setting is special cased to the `default_theme` in the config file):
```
{
...
settingDefaults: {
settingName: true
},
...
}
```
### Getting values for a setting
After importing `SettingsStore`, simply make a call to `SettingsStore.getValue`. The `roomId` parameter should always