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
Add a request method to /devices
Turns out `HTTP /devices undefined` is invalid. Regressed in https://github.com/matrix-org/matrix-js-sdk/pull/990
This commit is contained in:
@@ -1361,8 +1361,9 @@ MatrixBaseApis.prototype.setPassword = function(authDict, newPassword, callback)
|
|||||||
* @return {module:http-api.MatrixError} Rejects: with an error response.
|
* @return {module:http-api.MatrixError} Rejects: with an error response.
|
||||||
*/
|
*/
|
||||||
MatrixBaseApis.prototype.getDevices = function() {
|
MatrixBaseApis.prototype.getDevices = function() {
|
||||||
const path = "/devices";
|
return this._http.authedRequest(
|
||||||
return this._http.authedRequest(undefined, path, undefined, undefined);
|
undefined, 'GET', "/devices", undefined, undefined,
|
||||||
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user