summary refs log tree commit diff
path: root/synapse/storage/event_federation.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2016-09-16 10:19:32 +0100
committerErik Johnston <erik@matrix.org>2016-09-16 10:19:32 +0100
commite58a9d781c7808b66f6eda221c9ce91ccd3cd8d6 (patch)
tree65acefc3f853ec60df599562e16afe63fd4fdb6c /synapse/storage/event_federation.py
parentDon't cache searched in /publicRooms (diff)
downloadsynapse-e58a9d781c7808b66f6eda221c9ce91ccd3cd8d6.tar.xz
Filter remote rooms lists locally
Diffstat (limited to 'synapse/storage/event_federation.py')
-rw-r--r--synapse/storage/event_federation.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/storage/event_federation.py b/synapse/storage/event_federation.py
index 765b5a5bcb..53289f556b 100644
--- a/synapse/storage/event_federation.py
+++ b/synapse/storage/event_federation.py
@@ -376,7 +376,7 @@ class EventFederationStore(SQLBaseStore):
                 INNER JOIN (
                     SELECT room_id, MAX(stream_ordering) AS stream_ordering
                     FROM stream_ordering_to_exterm
-                    WHERE stream_ordering < ? GROUP BY room_id
+                    WHERE stream_ordering <= ? GROUP BY room_id
                 ) AS rms USING (room_id, stream_ordering)
                 WHERE room_id = ?
         """)