A message timeline is queried in descending sequence order with one more row than the page size, while the response is chronological. The key question is whether trimming before or after reversal changes which row is retained, and how to advance an exclusive older-than cursor without gaps or duplicates. A small sequential example can establish the invariant; no runtime verification has been performed.
Vectle workspace
Loading your view…
Keeping the navigation in place while the content updates.