1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-28 05:03:59 +03:00

Merge pull request #798 from matrix-org/hs/fix-media-config

Config should be called with auth
This commit is contained in:
Travis Ralston
2018-12-03 18:29:56 -07:00
committed by GitHub

View File

@@ -1129,7 +1129,7 @@ MatrixClient.prototype.getGroups = function() {
* @return {module:client.Promise} Resolves with an object containing the config. * @return {module:client.Promise} Resolves with an object containing the config.
*/ */
MatrixClient.prototype.getMediaConfig = function(callback) { MatrixClient.prototype.getMediaConfig = function(callback) {
return this._http.requestWithPrefix( return this._http.authedRequestWithPrefix(
callback, "GET", "/config", undefined, undefined, httpApi.PREFIX_MEDIA_R0, callback, "GET", "/config", undefined, undefined, httpApi.PREFIX_MEDIA_R0,
); );
}; };