Skip to content

Commit fcebe89

Browse files
committed
Merge branch 'hs/upload-limits' into develop
2 parents 3e32f47 + fde00b1 commit fcebe89

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/client.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -771,6 +771,17 @@ MatrixClient.prototype.getGroups = function() {
771771
return this.store.getGroups();
772772
};
773773

774+
/**
775+
* Get the config for the media repository.
776+
* @param {module:client.callback} callback Optional.
777+
* @return {module:client.Promise} Resolves with an object containing the config.
778+
*/
779+
MatrixClient.prototype.getMediaConfig = function(callback) {
780+
return this._http.requestWithPrefix(
781+
callback, "GET", "/config", undefined, undefined, httpApi.PREFIX_MEDIA_R0,
782+
);
783+
};
784+
774785
// Room ops
775786
// ========
776787

0 commit comments

Comments
 (0)