mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-10-01 08:25:44 -04:00
Don't unnecessarily require token to be stream token
This allows calling the `get_recent_event_ids_for_room` function in more situations.
This commit is contained in:
parent
c4af4c24ca
commit
e5ab9cd24b
@ -407,7 +407,7 @@ class StreamWorkerStore(EventsWorkerStore, SQLBaseStore):
|
|||||||
if limit == 0:
|
if limit == 0:
|
||||||
defer.returnValue(([], end_token))
|
defer.returnValue(([], end_token))
|
||||||
|
|
||||||
end_token = RoomStreamToken.parse_stream_token(end_token)
|
end_token = RoomStreamToken.parse(end_token)
|
||||||
|
|
||||||
rows, token = yield self.runInteraction(
|
rows, token = yield self.runInteraction(
|
||||||
"get_recent_event_ids_for_room", self._paginate_room_events_txn,
|
"get_recent_event_ids_for_room", self._paginate_room_events_txn,
|
||||||
|
Loading…
Reference in New Issue
Block a user