Merge pull request #2974 from matrix-org/dbkr/fix_sso

Fix Single Sign-on
This commit is contained in:
David Baker 2019-05-15 14:12:05 +01:00 committed by GitHub
commit b4d2463d17
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 24 additions and 3 deletions

View file

@ -121,6 +121,7 @@ class MatrixClientPeg {
// check that we have a version of the js-sdk which includes initCrypto
if (this.matrixClient.initCrypto) {
await this.matrixClient.initCrypto();
StorageManager.setCryptoInitialised(true);
}
} catch (e) {
if (e && e.name === 'InvalidCryptoStoreError') {