summary refs log tree commit diff
path: root/synapse/storage/state.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2014-11-26 10:41:08 +0000
committerErik Johnston <erik@matrix.org>2014-11-26 10:41:08 +0000
commit3598c11c8dcb5fb0df16276298760e0de31d0a84 (patch)
treeb15cc7b7b292083ca3a49d178167f7b0ed3fb825 /synapse/storage/state.py
parentupgrade script depends on sqlite3 cli (diff)
downloadsynapse-3598c11c8dcb5fb0df16276298760e0de31d0a84.tar.xz
Correctly handle the case where we get an event for an unknown room, which turns out we are actually in
Diffstat (limited to 'synapse/storage/state.py')
-rw-r--r--synapse/storage/state.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/storage/state.py b/synapse/storage/state.py
index 55ea567793..e0f44b3e59 100644
--- a/synapse/storage/state.py
+++ b/synapse/storage/state.py
@@ -87,7 +87,7 @@ class StateStore(SQLBaseStore):
         )
 
     def _store_state_groups_txn(self, txn, event):
-        if not event.state_events:
+        if event.state_events is None:
             return
 
         state_group = event.state_group