From a297ff2b16094f358cc8432f1db660ca539f8b4d Mon Sep 17 00:00:00 2001
From: Erik Johnston <erik@matrix.org>
Date: Wed, 25 Jul 2018 09:48:01 +0100
Subject: [PATCH] Fix typo in conditional

---
 synapse/storage/events.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/synapse/storage/events.py b/synapse/storage/events.py
index bd05f23b06..5024c4714d 100644
--- a/synapse/storage/events.py
+++ b/synapse/storage/events.py
@@ -576,7 +576,7 @@ class EventsStore(EventsWorkerStore):
         for ev, ctx in events_context:
             if ctx.state_group is None:
                 # This should only happen for outlier events.
-                if not event.internal_metadata.is_outlier():
+                if not ev.internal_metadata.is_outlier():
                     raise Exception(
                         "Context for new event %s has no state "
                         "group" % (ev.event_id, ),
-- 
GitLab