summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2015-06-01 17:02:23 +0100
committerErik Johnston <erik@matrix.org>2015-06-01 17:02:23 +0100
commit4bbfbf898ecfe9bd77b02a7e014d94163d1fd534 (patch)
tree884e373d80035700bff68ba0bf5f42ece44ef923 /synapse
parentDon't explode if we don't have the event (diff)
downloadsynapse-4bbfbf898ecfe9bd77b02a7e014d94163d1fd534.tar.xz
Correctly pass in auth_events
Diffstat (limited to 'synapse')
-rw-r--r--synapse/handlers/federation.py12
1 files changed, 11 insertions, 1 deletions
diff --git a/synapse/handlers/federation.py b/synapse/handlers/federation.py
index 46ce3699d7..caf6a1f8eb 100644
--- a/synapse/handlers/federation.py
+++ b/synapse/handlers/federation.py
@@ -262,7 +262,13 @@ class FederationHandler(BaseHandler):
 
         yield defer.gatherResults(
             [
-                self._handle_new_event(dest, a)
+                self._handle_new_event(
+                    dest, a,
+                    auth_events={
+                        (e.type, e.state_key): e for e in auth_events
+                        if e.event_id in [a_id for a_id, _ in a.auth_events]
+                    }
+                )
                 for a in auth_events.values()
             ],
             consumeErrors=True,
@@ -274,6 +280,10 @@ class FederationHandler(BaseHandler):
                     dest, event_map[e_id],
                     state=events_to_state[e_id],
                     backfilled=True,
+                    auth_events={
+                        (e.type, e.state_key): e for e in auth_events
+                        if e.event_id in [a_id for a_id, _ in a.auth_events]
+                    }
                 )
                 for e_id in events_to_state
             ],