Commit 734715c
committed
Report has_more on cursor-opposite side when cursor is set
Paging backward with --before TS proves messages newer than TS exist
(TS itself is one of them), so has_more_after must be true. The old
logic only derived has_more from peek-ahead detection and missed the
cursor signal, leaving users at the end of a --before page with no way
to turn around via the footer or JSON cursors. Same symmetry for
--after TS implying has_more_before. Applied to both get_messages and
get_thread_replies.1 parent 2e2b0b3 commit 734715c
1 file changed
Lines changed: 15 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
272 | 272 | | |
273 | 273 | | |
274 | 274 | | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
275 | 283 | | |
276 | 284 | | |
277 | 285 | | |
| |||
385 | 393 | | |
386 | 394 | | |
387 | 395 | | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
388 | 403 | | |
389 | 404 | | |
390 | 405 | | |
| |||
0 commit comments