Only send catch up events if they're the latest in the room
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user