Write more typescript defs
This commit is contained in:
parent
f5d75bc078
commit
cd29edb442
5 changed files with 25 additions and 19 deletions
|
@ -59,7 +59,7 @@ export default class AccountSettingsHandler extends MatrixClientBackedSettingsHa
|
|||
} else if (event.getType() === "im.vector.web.settings") {
|
||||
// Figure out what changed and fire those updates
|
||||
const prevContent = prevEvent ? prevEvent.getContent() : {};
|
||||
const changedSettings = objectKeyChanges(prevContent, event.getContent());
|
||||
const changedSettings = objectKeyChanges<Record<string, any>>(prevContent, event.getContent());
|
||||
for (const settingName of changedSettings) {
|
||||
const val = event.getContent()[settingName];
|
||||
this.watchers.notifyUpdate(settingName, null, SettingLevel.ACCOUNT, val);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue