Don't reverse start and end

This commit is contained in:
Neil Alexander 2021-01-13 11:23:09 +00:00
parent 730e0918a8
commit c71174b059
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -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