You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-11-26 17:03:12 +03:00
Add function to get currently joined rooms.
This commit is contained in:
@@ -927,6 +927,14 @@ MatrixBaseApis.prototype.setRoomReadMarkersHttpRequest =
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return {module:client.Promise} Resolves: A list of the user's current rooms
|
||||||
|
* @return {module:http-api.MatrixError} Rejects: with an error response.
|
||||||
|
*/
|
||||||
|
MatrixBaseApis.prototype.getJoinedRooms = function() {
|
||||||
|
const path = utils.encodeUri("/joined_rooms");
|
||||||
|
return this._http.authedRequest(undefined, "GET", path);
|
||||||
|
};
|
||||||
|
|
||||||
// Room Directory operations
|
// Room Directory operations
|
||||||
// =========================
|
// =========================
|
||||||
|
|||||||
Reference in New Issue
Block a user