summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2015-05-21 15:52:29 +0100
committerErik Johnston <erik@matrix.org>2015-05-21 15:52:29 +0100
commit1f3d1d85a9a12cab1423d39f82c8dbe339e69269 (patch)
tree26670558311ae18a7afe1b807f0d2d723ef69f78 /synapse
parentSkip events we've already seen (diff)
downloadsynapse-1f3d1d85a9a12cab1423d39f82c8dbe339e69269.tar.xz
Only get non-state
Diffstat (limited to 'synapse')
-rw-r--r--synapse/storage/event_federation.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/storage/event_federation.py b/synapse/storage/event_federation.py
index 823a4998c3..8188b7cbc4 100644
--- a/synapse/storage/event_federation.py
+++ b/synapse/storage/event_federation.py
@@ -383,6 +383,7 @@ class EventFederationStore(SQLBaseStore):
             " ON prev_event_id = events.event_id"
             " AND event_edges.room_id = events.room_id"
             " WHERE event_edges.room_id = ? AND event_edges.event_id = ?"
+            " AND event_edges.is_state = ?"
             " LIMIT ?"
         )
 
@@ -418,7 +419,7 @@ class EventFederationStore(SQLBaseStore):
 
             txn.execute(
                 query,
-                (room_id, event_id, limit - len(event_results))
+                (room_id, event_id, False, limit - len(event_results))
             )
 
             for row in txn.fetchall():