Query for all the ones we were asked about, not just the last...

This commit is contained in:
David Baker 2015-07-21 16:38:16 -07:00
parent 20c0324e9c
commit a56eccbbfc

View File

@ -180,7 +180,7 @@ class KeyQueryServlet(RestServlet):
else:
for device_id in device_ids:
query.append((user_id, device_id))
results = yield self.store.get_e2e_device_keys([(user_id, device_id)])
results = yield self.store.get_e2e_device_keys(query)
defer.returnValue(self.json_result(request, results))
@defer.inlineCallbacks