Merge branch 'travis/room-list/setting-diff' into travis/room-list/unread-2
This commit is contained in:
commit
64a811fb03
1 changed files with 1 additions and 1 deletions
|
@ -162,7 +162,7 @@ export default class AccountSettingsHandler extends MatrixClientBackedSettingsHa
|
||||||
|
|
||||||
const event = cli.getAccountData(eventType);
|
const event = cli.getAccountData(eventType);
|
||||||
if (!event || !event.getContent()) return null;
|
if (!event || !event.getContent()) return null;
|
||||||
return event.getContent();
|
return JSON.parse(JSON.stringify(event.getContent())); // clone to prevent mutation
|
||||||
}
|
}
|
||||||
|
|
||||||
_notifyBreadcrumbsUpdate(event) {
|
_notifyBreadcrumbsUpdate(event) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue