mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-26 00:03:09 -06:00
Don't reverse start and end
This commit is contained in:
parent
730e0918a8
commit
c71174b059
|
|
@ -288,7 +288,6 @@ func (r *messagesReq) retrieveEvents() (
|
|||
// we consider a left to right chronological order), tokens need to refer
|
||||
// to them by the event on their left, therefore we need to decrement the
|
||||
// end position we send in the response if we're going backward.
|
||||
start, end = end, start
|
||||
end.Decrement()
|
||||
|
||||
// This reverses the array from old->new to new->old
|
||||
|
|
|
|||
Loading…
Reference in a new issue