diff --git a/src/client.js b/src/client.js index 9a538b77d..7abb00d61 100644 --- a/src/client.js +++ b/src/client.js @@ -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