diff options
author | Erik Johnston <erik@matrix.org> | 2018-05-09 11:58:35 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2018-05-09 11:58:35 +0100 |
commit | e5ab9cd24b2f63c6ca00ae6354dbcbfcd9127dfb (patch) | |
tree | e9fc07eecab6c331a35b56aca1b2a71cd41c81b5 /synapse/storage/stream.py | |
parent | Refactor get_recent_events_for_room return type (diff) | |
download | synapse-e5ab9cd24b2f63c6ca00ae6354dbcbfcd9127dfb.tar.xz |
Don't unnecessarily require token to be stream token
This allows calling the `get_recent_event_ids_for_room` function in more situations.
Diffstat (limited to '')
-rw-r--r-- | synapse/storage/stream.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/storage/stream.py b/synapse/storage/stream.py index b5baacd32c..5e4327bb96 100644 --- a/synapse/storage/stream.py +++ b/synapse/storage/stream.py @@ -407,7 +407,7 @@ class StreamWorkerStore(EventsWorkerStore, SQLBaseStore): if limit == 0: defer.returnValue(([], end_token)) - end_token = RoomStreamToken.parse_stream_token(end_token) + end_token = RoomStreamToken.parse(end_token) rows, token = yield self.runInteraction( "get_recent_event_ids_for_room", self._paginate_room_events_txn, |