summary refs log tree commit diff
path: root/synapse/rest
diff options
context:
space:
mode:
authorErik Johnston <erikj@matrix.org>2023-10-05 12:46:28 +0300
committerGitHub <noreply@github.com>2023-10-05 10:46:28 +0100
commit009b47badfed7593cff5f8acbd61e8fddb3ca788 (patch)
tree98061b9652da95e5892430c5058d2880156d0ea9 /synapse/rest
parentAdd type hints to synmark. (#16421) (diff)
downloadsynapse-009b47badfed7593cff5f8acbd61e8fddb3ca788.tar.xz
Factor out `MultiWriter` token from `RoomStreamToken` (#16427)
Diffstat (limited to 'synapse/rest')
-rw-r--r--synapse/rest/admin/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/rest/admin/__init__.py b/synapse/rest/admin/__init__.py
index e42dade246..9bd0d764f8 100644
--- a/synapse/rest/admin/__init__.py
+++ b/synapse/rest/admin/__init__.py
@@ -146,7 +146,7 @@ class PurgeHistoryRestServlet(RestServlet):
             # RoomStreamToken expects [int] not Optional[int]
             assert event.internal_metadata.stream_ordering is not None
             room_token = RoomStreamToken(
-                event.depth, event.internal_metadata.stream_ordering
+                topological=event.depth, stream=event.internal_metadata.stream_ordering
             )
             token = await room_token.to_string(self.store)