mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-03 15:34:48 -04:00
Fixes https://github.com/matrix-org/synapse/issues/12383
This commit is contained in:
parent
9af2be192a
commit
f6c74d1cb2
4 changed files with 60 additions and 0 deletions
|
@ -448,6 +448,12 @@ class PaginationHandler:
|
|||
|
||||
if pagin_config.from_token:
|
||||
from_token = pagin_config.from_token
|
||||
elif pagin_config.direction == "f":
|
||||
from_token = (
|
||||
await self.hs.get_event_sources().get_start_token_for_pagination(
|
||||
room_id
|
||||
)
|
||||
)
|
||||
else:
|
||||
from_token = (
|
||||
await self.hs.get_event_sources().get_current_token_for_pagination(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue