Merge remote-tracking branch 'origin/develop' into develop

pull/21833/head
Weblate 2017-11-15 11:15:57 +00:00
commit 0847596083
1 changed files with 3 additions and 1 deletions

View File

@ -64,7 +64,9 @@ export default class AccountSettingHandler extends SettingsHandler {
} }
_getSettings(eventType = "im.vector.web.settings") { _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 {}; if (!event || !event.getContent()) return {};
return event.getContent(); return event.getContent();
} }