mirror of
https://github.com/element-hq/element-web.git
synced 2024-12-16 02:11:30 +03:00
Added persistance
This commit is contained in:
parent
43daec03e2
commit
5e4f9907cf
1 changed files with 3 additions and 1 deletions
|
@ -50,7 +50,7 @@ export default class GeneralUserSettingsTab extends React.Component {
|
|||
|
||||
this.state = {
|
||||
language: languageHandler.getCurrentLanguage(),
|
||||
spellCheckLanguages: [],
|
||||
spellCheckLanguages: SettingsStore.getValue("spell-check-languages", null, /*excludeDefault=*/true),
|
||||
haveIdServer: Boolean(MatrixClientPeg.get().getIdentityServerUrl()),
|
||||
serverSupportsSeparateAddAndBind: null,
|
||||
idServerHasUnsignedTerms: false,
|
||||
|
@ -185,7 +185,9 @@ export default class GeneralUserSettingsTab extends React.Component {
|
|||
};
|
||||
|
||||
_onSpellCheckLanguagesChange = (languages) => {
|
||||
SettingsStore.setValue("spell-check-languages", null, SettingLevel.DEVICE, languages);
|
||||
this.setState({spellCheckLanguages: languages})
|
||||
PlatformPeg.get().reload();
|
||||
};
|
||||
|
||||
_onPasswordChangeError = (err) => {
|
||||
|
|
Loading…
Reference in a new issue