You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-11-26 17:03:12 +03:00
Check for lazy-loading support in the spec versions instead
Fixes https://github.com/vector-im/riot-web/issues/9966
This commit is contained in:
@@ -3925,9 +3925,13 @@ MatrixClient.prototype.doesServerSupportLazyLoading = async function() {
|
|||||||
prefix: '',
|
prefix: '',
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|
||||||
|
const versions = response["versions"];
|
||||||
const unstableFeatures = response["unstable_features"];
|
const unstableFeatures = response["unstable_features"];
|
||||||
|
|
||||||
this._serverSupportsLazyLoading =
|
this._serverSupportsLazyLoading =
|
||||||
unstableFeatures && unstableFeatures["m.lazy_load_members"];
|
(versions && versions.includes("r0.5.0"))
|
||||||
|
|| (unstableFeatures && unstableFeatures["m.lazy_load_members"]);
|
||||||
}
|
}
|
||||||
return this._serverSupportsLazyLoading;
|
return this._serverSupportsLazyLoading;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user