mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-17 14:05:04 +08:00
Merge remote-tracking branch 'origin/develop' into develop
This commit is contained in:
commit
0847596083
@ -64,7 +64,9 @@ export default class AccountSettingHandler extends SettingsHandler {
|
||||
}
|
||||
|
||||
_getSettings(eventType = "im.vector.web.settings") {
|
||||
const event = MatrixClientPeg.get().getAccountData(eventType);
|
||||
const cli = MatrixClientPeg.get();
|
||||
if (!cli) return {};
|
||||
const event = cli.getAccountData(eventType);
|
||||
if (!event || !event.getContent()) return {};
|
||||
return event.getContent();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user