summary refs log tree commit diff
path: root/synapse/storage
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/storage
parentDon't assume an event exists (diff)
downloadsynapse-52f99243ab0eef93558ddc95b744c548241057ac.tar.xz
Use is_outlier() so that we don't get AttributeError
Diffstat (limited to 'synapse/storage')
-rw-r--r--synapse/storage/__init__.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/synapse/storage/__init__.py b/synapse/storage/__init__.py
index 2a683b25f7..e236bf495b 100644
--- a/synapse/storage/__init__.py
+++ b/synapse/storage/__init__.py
@@ -143,9 +143,7 @@ class DataStore(RoomMemberStore, RoomStore,
         elif event.type == EventTypes.Redaction:
             self._store_redaction(txn, event)
 
-        outlier = False
-        if hasattr(event.internal_metadata, "outlier"):
-            outlier = event.internal_metadata.outlier
+        outlier = event.internal_metadata.is_outlier()
 
         event_dict = {
             k: v