1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-12-07 05:22:15 +03:00

pass lazy loading flag into error, to format message based on it

This commit is contained in:
Bruno Windels
2018-09-26 16:12:30 +01:00
parent 78a5a88638
commit 2d5eb920b8
2 changed files with 3 additions and 2 deletions

View File

@@ -3120,7 +3120,7 @@ MatrixClient.prototype.startClient = async function(opts) {
const shouldClear = await this._wasLazyLoadingToggled(opts.lazyLoadMembers);
if (shouldClear) {
const reason = InvalidStoreError.TOGGLED_LAZY_LOADING;
throw new InvalidStoreError(reason);
throw new InvalidStoreError(reason, !!opts.lazyLoadMembers);
}
if (opts.lazyLoadMembers && this._crypto) {
this._crypto.enableLazyLoading();