'Handle a device key query from a federated server'

@defer.inlineCallbacks
def on_federation_query_client_keys(self, query_body):

    device_keys_query = query_body.get('device_keys', {})
    res = (yield self.query_local_devices(device_keys_query))
    defer.returnValue({'device_keys': res})
