summary refs log tree commit diff
path: root/synapse/handlers/federation.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2015-06-03 17:20:40 +0100
committerErik Johnston <erik@matrix.org>2015-06-03 17:20:40 +0100
commit9dda396baa957f2ea2b871955e5c01c6ad0deee1 (patch)
treefd6b3bb05b0d2c54e808c9e264d0b36437e9dd23 /synapse/handlers/federation.py
parentMerge pull request #178 from matrix-org/erikj/cache_state_groups (diff)
parentComment (diff)
downloadsynapse-9dda396baa957f2ea2b871955e5c01c6ad0deee1.tar.xz
Merge pull request #179 from matrix-org/erikj/state_group_outliers
Don't compute EventContext for outliers.
Diffstat (limited to 'synapse/handlers/federation.py')
-rw-r--r--synapse/handlers/federation.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/synapse/handlers/federation.py b/synapse/handlers/federation.py
index 46ce3699d7..5503d9ae86 100644
--- a/synapse/handlers/federation.py
+++ b/synapse/handlers/federation.py
@@ -900,8 +900,10 @@ class FederationHandler(BaseHandler):
             event.event_id, event.signatures,
         )
 
+        outlier = event.internal_metadata.is_outlier()
+
         context = yield self.state_handler.compute_event_context(
-            event, old_state=state
+            event, old_state=state, outlier=outlier,
         )
 
         if not auth_events:
@@ -912,7 +914,7 @@ class FederationHandler(BaseHandler):
             event.event_id, auth_events,
         )
 
-        is_new_state = not event.internal_metadata.is_outlier()
+        is_new_state = not outlier
 
         # This is a hack to fix some old rooms where the initial join event
         # didn't reference the create event in its auth events.