1
0

Only send catch up events if they're the latest in the room

This commit is contained in:
Erik Johnston
2021-03-15 15:34:13 +00:00
parent d29b71aa50
commit 2e09e2163e

View File

@@ -428,7 +428,8 @@ class TransactionStore(TransactionWorkerStore):
) -> List[str]:
q = """
SELECT event_id FROM destination_rooms
JOIN events USING (stream_ordering)
INNER JOIN events USING (stream_ordering)
INNER JOIN event_forward_extremities USING (event_id)
WHERE destination = ?
AND stream_ordering > ?
ORDER BY stream_ordering