1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-26 17:03:12 +03:00

Maybe use the right user ID too

This commit is contained in:
Travis Ralston
2019-11-14 11:54:13 -07:00
parent bad48da11a
commit 904a2f466e

View File

@@ -4023,7 +4023,7 @@ MatrixClient.prototype.isFallbackICEServerAllowed = function() {
MatrixClient.prototype.isSynapseAdministrator = function() { MatrixClient.prototype.isSynapseAdministrator = function() {
const path = utils.encodeUri( const path = utils.encodeUri(
"/_synapse/admin/v1/users/$userId/admin", "/_synapse/admin/v1/users/$userId/admin",
{ $userId: userId }, { $userId: this.getUserId() },
); );
return this._http.authedRequest( return this._http.authedRequest(
undefined, 'GET', path, undefined, undefined, {prefix: ''}, undefined, 'GET', path, undefined, undefined, {prefix: ''},