summary refs log tree commit diff
path: root/synapse/handlers/admin.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2024-08-08 11:27:23 +0100
committerErik Johnston <erik@matrix.org>2024-08-08 11:27:23 +0100
commit46c66aa8e79f67d86091ca809f48b36989fb06e5 (patch)
tree00eaf8c52093423267047b35d610c0fb42c02f66 /synapse/handlers/admin.py
parentMerge remote-tracking branch 'origin/release-v1.113' into matrix-org-hotfixes (diff)
parentSSS: Implement PREVIOUSLY room tracking (#17535) (diff)
downloadsynapse-github/matrix-org-hotfixes.tar.xz
Merge remote-tracking branch 'origin/develop' into matrix-org-hotfixes github/matrix-org-hotfixes matrix-org-hotfixes
Diffstat (limited to 'synapse/handlers/admin.py')
-rw-r--r--synapse/handlers/admin.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/synapse/handlers/admin.py b/synapse/handlers/admin.py

index ec35784c5f..b44e862493 100644 --- a/synapse/handlers/admin.py +++ b/synapse/handlers/admin.py
@@ -197,8 +197,14 @@ class AdminHandler: # events that we have and then filtering, this isn't the most # efficient method perhaps but it does guarantee we get everything. while True: - events, _ = await self._store.paginate_room_events( - room_id, from_key, to_key, limit=100, direction=Direction.FORWARDS + events, _ = ( + await self._store.paginate_room_events_by_topological_ordering( + room_id=room_id, + from_key=from_key, + to_key=to_key, + limit=100, + direction=Direction.FORWARDS, + ) ) if not events: break