Skip to content

Commit

Permalink
Merge pull request #769 from matrix-org/bwindels/initcryptoll
Browse files Browse the repository at this point in the history
Fix: correctly check for crypto being present
  • Loading branch information
bwindels authored Oct 30, 2018
2 parents 604af1a + ad279dc commit 11968a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sync.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 11968a5

Please sign in to comment.