mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-03 07:24:49 -04:00
Make StreamToken.room_key
be a RoomStreamToken
instance. (#8281)
This commit is contained in:
parent
c312ee3cde
commit
fe8ed1b46f
16 changed files with 114 additions and 99 deletions
|
@ -344,7 +344,7 @@ class PaginationHandler:
|
|||
# gets called.
|
||||
raise Exception("limit not set")
|
||||
|
||||
room_token = RoomStreamToken.parse(from_token.room_key)
|
||||
room_token = from_token.room_key
|
||||
|
||||
with await self.pagination_lock.read(room_id):
|
||||
(
|
||||
|
@ -381,7 +381,7 @@ class PaginationHandler:
|
|||
|
||||
if leave_token.topological < max_topo:
|
||||
from_token = from_token.copy_and_replace(
|
||||
"room_key", leave_token_str
|
||||
"room_key", leave_token
|
||||
)
|
||||
|
||||
await self.hs.get_handlers().federation_handler.maybe_backfill(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue