You've already forked matrix-js-sdk
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:
@@ -4023,7 +4023,7 @@ MatrixClient.prototype.isFallbackICEServerAllowed = function() {
|
||||
MatrixClient.prototype.isSynapseAdministrator = function() {
|
||||
const path = utils.encodeUri(
|
||||
"/_synapse/admin/v1/users/$userId/admin",
|
||||
{ $userId: userId },
|
||||
{ $userId: this.getUserId() },
|
||||
);
|
||||
return this._http.authedRequest(
|
||||
undefined, 'GET', path, undefined, undefined, {prefix: ''},
|
||||
|
||||
Reference in New Issue
Block a user