diff --git a/src/base-apis.js b/src/base-apis.js index 37c3d76d63d..5b2a70b816a 100644 --- a/src/base-apis.js +++ b/src/base-apis.js @@ -2378,18 +2378,27 @@ MatrixBaseApis.prototype.reportEvent = function(roomId, eventId, score, reason) * Fetches or paginates a summary of a space as defined by MSC2946 * @param {string} roomId The ID of the space-room to use as the root of the summary. * @param {number?} maxRoomsPerSpace The maximum number of rooms to return per subspace. + * @param {boolean?} suggestedOnly Whether to only return rooms with suggested=true. * @param {boolean?} autoJoinOnly Whether to only return rooms with auto_join=true. * @param {number?} limit The maximum number of rooms to return in total. * @param {string?} batch The opaque token to paginate a previous summary request. * @returns {Promise} the response, with next_batch, rooms, events fields. */ -MatrixBaseApis.prototype.getSpaceSummary = function(roomId, maxRoomsPerSpace, autoJoinOnly, limit, batch) { +MatrixBaseApis.prototype.getSpaceSummary = function( + roomId, + maxRoomsPerSpace, + suggestedOnly, + autoJoinOnly, + limit, + batch, +) { const path = utils.encodeUri("/rooms/$roomId/spaces", { $roomId: roomId, }); return this._http.authedRequest(undefined, "POST", path, null, { max_rooms_per_space: maxRoomsPerSpace, + suggested_only: suggestedOnly, auto_join_only: autoJoinOnly, limit, batch,