1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2026-01-03 23:22:30 +03:00

Rewrite the device key query logic

Only permit one query per user at a time.
This commit is contained in:
Richard van der Hoff
2017-01-30 18:58:37 +00:00
parent f81d6b6157
commit 94addb6315
3 changed files with 102 additions and 123 deletions

View File

@@ -347,7 +347,11 @@ describe("MatrixClient", function() {
*/
httpBackend.when("POST", "/keys/query").check(function(req) {
expect(req.data).toEqual({device_keys: {boris: {}, chaz: {}}});
expect(req.data).toEqual({device_keys: {
'@alice:localhost': {},
'boris': {},
'chaz': {},
}});
}).respond(200, {
device_keys: {
boris: borisKeys,