Support accounts with cross signing but no SSSS

At least at the login stage.

Fixes https://github.com/vector-im/riot-web/issues/13894
This commit is contained in:
David Baker 2020-06-05 16:40:20 +01:00
parent b82a893a79
commit 68e555a0c6
4 changed files with 29 additions and 14 deletions

View file

@ -68,7 +68,7 @@ export class SetupEncryptionStore extends EventEmitter {
async fetchKeyInfo() {
const keys = await MatrixClientPeg.get().isSecretStored('m.cross_signing.master', false);
if (Object.keys(keys).length === 0) {
if (!keys || Object.keys(keys).length === 0) {
this.keyId = null;
this.keyInfo = null;
} else {