summary refs log tree commit diff
path: root/synapse/state.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2014-12-16 18:33:50 +0000
committerErik Johnston <erik@matrix.org>2014-12-16 18:33:50 +0000
commit52f99243ab0eef93558ddc95b744c548241057ac (patch)
treefd417ec5ffaff3980b5d7a63a69c859a89527788 /synapse/state.py
parentDon't assume an event exists (diff)
downloadsynapse-52f99243ab0eef93558ddc95b744c548241057ac.tar.xz
Use is_outlier() so that we don't get AttributeError
Diffstat (limited to '')
-rw-r--r--synapse/state.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/state.py b/synapse/state.py
index 99f873b6e5..580053d3ff 100644
--- a/synapse/state.py
+++ b/synapse/state.py
@@ -79,7 +79,7 @@ class StateHandler(object):
             defer.returnValue(False)
             return
 
-        if hasattr(event, "outlier") and event.outlier:
+        if event.is_outlier():
             event.state_group = None
             event.old_state_events = None
             event.state_events = None