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

add method to query LL state in client

This commit is contained in:
Bruno Windels
2018-09-03 11:14:23 +02:00
parent d29524ba3f
commit f84684982f

View File

@@ -3174,6 +3174,14 @@ MatrixClient.prototype.doesServerSupportLazyLoading = async function() {
return this._serverSupportsLazyLoading;
};
/*
* Get if lazy loading members is being used.
* @return {boolean} Whether or not members are lazy loaded by this client
*/
MatrixClient.prototype.hasLazyLoadMembersEnabled = function() {
return !!this._clientOpts.lazyLoadMembers;
};
/*
* Set a function which is called when /sync returns a 'limited' response.
* It is called with a room ID and returns a boolean. It should return 'true' if the SDK