diff --git a/src/base-apis.js b/src/base-apis.js index df8223d13..f7af2b70d 100644 --- a/src/base-apis.js +++ b/src/base-apis.js @@ -448,6 +448,16 @@ MatrixBaseApis.prototype.getGroupUsers = function(groupId) { return this._http.authedRequest(undefined, "GET", path); }; +/** + * @param {string} groupId + * @return {module:client.Promise} Resolves: Group users list object + * @return {module:http-api.MatrixError} Rejects: with an error response. + */ +MatrixBaseApis.prototype.getGroupInvitedUsers = function(groupId) { + const path = utils.encodeUri("/groups/$groupId/invited_users", {$groupId: groupId}); + return this._http.authedRequest(undefined, "GET", path); +}; + /** * @param {string} groupId * @return {module:client.Promise} Resolves: Group rooms list object