1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-12-10 07:22:27 +03:00

getMediaLimits -> getMediaConfig

This commit is contained in:
Will Hunt
2018-06-23 12:57:29 +01:00
parent 8dd425f8ff
commit fde00b1c62

View File

@@ -728,14 +728,11 @@ MatrixClient.prototype.getGroups = function() {
}; };
/** /**
* Get the room for the given room ID. * Get the config for the media repository.
* This function will return a valid room for any room for which a Room event
* has been emitted. Note in particular that other events, eg. RoomState.members
* will be emitted for a room before this function will return the given room.
* @param {module:client.callback} callback Optional. * @param {module:client.callback} callback Optional.
* @return {module:client.Promise} Resolves with an object containing the limits. * @return {module:client.Promise} Resolves with an object containing the config.
*/ */
MatrixClient.prototype.getMediaLimits = function(callback) { MatrixClient.prototype.getMediaConfig = function(callback) {
return this._http.requestWithPrefix( return this._http.requestWithPrefix(
callback, "GET", "/config", undefined, undefined, httpApi.PREFIX_MEDIA_R0, callback, "GET", "/config", undefined, undefined, httpApi.PREFIX_MEDIA_R0,
); );