summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2018-10-24 09:47:49 +0100
committerErik Johnston <erik@matrix.org>2018-10-24 09:47:49 +0100
commitdacbeb2e03274d347bd3d3919a00a56661dbb002 (patch)
treef205e376faccbe1f99ed76d3db2955411ee136d7 /synapse
parentRename resolve_events_with_factory (diff)
downloadsynapse-dacbeb2e03274d347bd3d3919a00a56661dbb002.tar.xz
Comment
Diffstat (limited to 'synapse')
-rw-r--r--synapse/handlers/federation.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/synapse/handlers/federation.py b/synapse/handlers/federation.py

index 91a18a552c..1daa08df7e 100644 --- a/synapse/handlers/federation.py +++ b/synapse/handlers/federation.py
@@ -390,6 +390,11 @@ class FederationHandler(BaseHandler): state_res_store=StateResolutionStore(self.store), ) + # We need to give _process_received_pdu the actual state events + # rather than event ids, so generate that now. + + # First though we need to fetch all the events that are in + # state_map, so we can build up the state below. evs = yield self.store.get_events( list(state_map.values()), get_prev_content=False, @@ -397,8 +402,6 @@ class FederationHandler(BaseHandler): ) event_map.update(evs) - # we need to give _process_received_pdu the actual state events - # rather than event ids, so generate that now. state = [ event_map[e] for e in six.itervalues(state_map) ]