Filter remote rooms lists locally

This commit is contained in:
Erik Johnston 2016-09-16 10:19:32 +01:00
parent 74d4cdee25
commit e58a9d781c
2 changed files with 25 additions and 11 deletions

View file

@ -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 = ?
""")