mirror of
https://mau.dev/maunium/synapse.git
synced 2024-11-05 22:28:54 +01:00
SYN-104: When going backwards the end token should be before the last event
This commit is contained in:
parent
11fd81e398
commit
1731af3f29
1 changed files with 3 additions and 0 deletions
|
@ -253,6 +253,9 @@ class StreamStore(SQLBaseStore):
|
|||
if rows:
|
||||
topo = rows[-1]["topological_ordering"]
|
||||
toke = rows[-1]["stream_ordering"]
|
||||
if direction == 'b':
|
||||
topo -= 1
|
||||
toke -= 1
|
||||
next_token = "t%s-%s" % (topo, toke)
|
||||
else:
|
||||
# TODO (erikj): We should work out what to do here instead.
|
||||
|
|
Loading…
Reference in a new issue