1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-25 05:23:13 +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:
Travis Ralston
2019-07-11 14:35:04 -06:00
parent a8d200dd02
commit c1f28bd410

View File

@@ -1361,8 +1361,9 @@ MatrixBaseApis.prototype.setPassword = function(authDict, newPassword, callback)
* @return {module:http-api.MatrixError} Rejects: with an error response.
*/
MatrixBaseApis.prototype.getDevices = function() {
const path = "/devices";
return this._http.authedRequest(undefined, path, undefined, undefined);
return this._http.authedRequest(
undefined, 'GET', "/devices", undefined, undefined,
);
};
/**