diff --git a/src/base-apis.js b/src/base-apis.js index 5a176870194026862bb485d5d1e1e8407444f109..765e6ce8de5bcec58ed33d4b67dc445cbc2e313d 100644 --- a/src/base-apis.js +++ b/src/base-apis.js @@ -398,9 +398,14 @@ MatrixBaseApis.prototype.roomState = function(roomId, callback) { return this._http.authedRequest(callback, "GET", path); }; -MatrixBaseApis.prototype.getGroupSummary = function(groupId, callback) { +/** + * @param {string} groupId + * @return {module:client.Promise} Resolves: Group summary object + * @return {module:http-api.MatrixError} Rejects: with an error response. + */ +MatrixBaseApis.prototype.getGroupSummary = function(groupId) { const path = utils.encodeUri("/groups/$groupId/summary", {$groupId: groupId}); - return this._http.authedRequest(callback, "GET", path); + return this._http.authedRequest(undefined, "GET", path); }; /**