1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-29 16:43:09 +03:00
This commit is contained in:
David Baker
2019-11-13 14:11:50 +00:00
parent 26aa3d3ce7
commit d12c56a623

View File

@@ -35,7 +35,9 @@ export default class SecretStorage extends EventEmitter {
}
getDefaultKeyId() {
const defaultKeyEvent = this._baseApis.getAccountData('m.secret_storage.default_key');
const defaultKeyEvent = this._baseApis.getAccountData(
'm.secret_storage.default_key',
);
if (!defaultKeyEvent) return null;
return defaultKeyEvent.getContent().key;
}