Fix reading of cached room device setting values (#8491)

* Fix reading of cached room device setting values

* Add tests
This commit is contained in:
Michael Telatynski 2022-05-04 15:54:59 +01:00 committed by GitHub
parent 3c36a7f704
commit 5cdc8fb3fd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 36 additions and 1 deletions

View file

@ -69,7 +69,7 @@ export default class RoomDeviceSettingsHandler extends AbstractLocalStorageSetti
}
private read(key: string): any {
return this.getItem(key);
return this.getObject(key);
}
private getKey(settingName: string, roomId: string): string {