From e7c4a74ed667fb4653e1738a12c4f6f588a773b0 Mon Sep 17 00:00:00 2001 From: Will Hunt Date: Tue, 4 Dec 2018 01:27:08 +0000 Subject: [PATCH] Config should be called with auth --- src/client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client.js b/src/client.js index 64bbf5082..723a6a064 100644 --- a/src/client.js +++ b/src/client.js @@ -767,7 +767,7 @@ MatrixClient.prototype.getGroups = function() { * @return {module:client.Promise} Resolves with an object containing the config. */ MatrixClient.prototype.getMediaConfig = function(callback) { - return this._http.requestWithPrefix( + return this._http.authedRequestWithPrefix( callback, "GET", "/config", undefined, undefined, httpApi.PREFIX_MEDIA_R0, ); };