mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-21 12:08:16 -04:00
Generate historic pagination token for /messages
when no ?from
token provided (#12370)
This commit is contained in:
parent
573cd0f92f
commit
793d03e2c5
6 changed files with 26 additions and 14 deletions
|
@ -110,7 +110,9 @@ class PaginationTestCase(HomeserverTestCase):
|
|||
def _filter_messages(self, filter: JsonDict) -> List[EventBase]:
|
||||
"""Make a request to /messages with a filter, returns the chunk of events."""
|
||||
|
||||
from_token = self.hs.get_event_sources().get_current_token_for_pagination()
|
||||
from_token = self.get_success(
|
||||
self.hs.get_event_sources().get_current_token_for_pagination(self.room_id)
|
||||
)
|
||||
|
||||
events, next_key = self.get_success(
|
||||
self.hs.get_datastores().main.paginate_room_events(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue