1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-28 05:03:59 +03:00

correctly check for crypto being present

This commit is contained in:
Bruno Windels
2018-10-30 16:05:44 +01:00
parent e69f7dbc5f
commit ad279dc566

View File

@@ -516,7 +516,7 @@ SyncApi.prototype.sync = function() {
console.warn("InvalidStoreError: store is not usable: stopping sync.");
return;
}
if (this.opts.lazyLoadMembers && this._crypto) {
if (this.opts.lazyLoadMembers && this.opts.crypto) {
this.opts.crypto.enableLazyLoading();
}
await this.client._storeClientOptions();