1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-26 17:03:12 +03:00

prototype support for lazily loading members in matrixclient

This commit is contained in:
Bruno Windels
2018-07-10 17:17:27 +02:00
parent 2b5925b893
commit 2c5cad71ee
3 changed files with 44 additions and 0 deletions

View File

@@ -417,6 +417,18 @@ MatrixBaseApis.prototype.roomState = function(roomId, callback) {
return this._http.authedRequest(callback, "GET", path);
};
/**
* @param {string} roomId
* @param {module:client.callback} callback Optional.
* @return {module:client.Promise} Resolves: TODO
* @return {module:http-api.MatrixError} Rejects: with an error response.
*/
MatrixBaseApis.prototype.joinedMembers = function(roomId, callback) {
const path = utils.encodeUri("/rooms/$roomId/joined_members", {$roomId: roomId});
return this._http.authedRequest(callback, "GET", path);
};
/**
* @param {string} groupId
* @return {module:client.Promise} Resolves: Group summary object