summary refs log tree commit diff
path: root/synapse/handlers/federation.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2015-02-04 14:06:42 +0000
committerErik Johnston <erik@matrix.org>2015-02-04 14:06:46 +0000
commit650e32d45580ddd13826364291bda6760c014df9 (patch)
tree21098f6310175c946359ebec2bed11894a739fc6 /synapse/handlers/federation.py
parentBrief comment on why we do some things on every call to persist_event and not... (diff)
downloadsynapse-650e32d45580ddd13826364291bda6760c014df9.tar.xz
Change context.auth_events to what the auth_events would be bases on context.current_state, rather than based on the auth_events from the event.
Diffstat (limited to 'synapse/handlers/federation.py')
-rw-r--r--synapse/handlers/federation.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/synapse/handlers/federation.py b/synapse/handlers/federation.py
index 0876589e31..2e2c23ef63 100644
--- a/synapse/handlers/federation.py
+++ b/synapse/handlers/federation.py
@@ -842,7 +842,9 @@ class FederationHandler(BaseHandler):
             logger.debug("Different auth: %s", different_auth)
 
             # 1. Get what we think is the auth chain.
-            auth_ids = self.auth.compute_auth_events(event, context)
+            auth_ids = self.auth.compute_auth_events(
+                event, context.current_state
+            )
             local_auth_chain = yield self.store.get_auth_chain(auth_ids)
 
             try: