1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-28 05:03:59 +03:00

Use the correct request body for the /keys/query endpoint.

https://matrix.org/docs/spec/client_server/r0.6.0#post-matrix-client-r0-keys-query
This commit is contained in:
Marcel
2020-04-07 14:08:49 +02:00
parent 275a8175aa
commit 1b3c4c935e

View File

@@ -1757,7 +1757,7 @@ MatrixBaseApis.prototype.downloadKeysForUsers = function(userIds, opts) {
content.token = opts.token;
}
userIds.forEach((u) => {
content.device_keys[u] = {};
content.device_keys[u] = [];
});
return this._http.authedRequest(undefined, "POST", "/keys/query", undefined, content);