continuwuity/src
Tom Foster c368018e5e fix(relations): improve thread pagination and include root event
Replace unreliable PduCount pagination tokens with ShortEventId throughout
the relations and messages endpoints. ShortEventId provides stable, unique
identifiers that persist across server restarts and database operations.

Key improvements:
- Add token parsing helpers that try ShortEventId first, fall back to
  PduCount for backwards compatibility
- Include thread root event when paginating backwards to thread start
- Fix off-by-one error in get_relations that was returning the starting
  event in results
- Only return next_batch/prev_batch tokens when more events are available,
  preventing clients from making unnecessary requests at thread boundaries
- Ensure consistent token format between /relations, /messages, and /sync
  endpoints for interoperability

This fixes duplicate events when scrolling at thread boundaries and ensures
the thread root message is visible when viewing a thread, matching expected
client behaviour.
2025-08-10 18:22:20 +01:00
..
admin refactor: Replace remaining std RwLocks 2025-07-20 16:33:36 +01:00
api fix(relations): improve thread pagination and include root event 2025-08-10 18:22:20 +01:00
build_metadata build: Don't rerun on git changes 2025-05-26 19:16:05 +01:00
core fix(policy-server): Correctly default to 10 second timeout 2025-07-23 17:56:45 +01:00
database chore: Update rocksdb, feature flag changes 2025-07-24 21:51:52 +01:00
macros refactor: Replace std Mutex with parking_lot 2025-07-20 16:31:02 +01:00
main chore: Update rocksdb, feature flag changes 2025-07-24 21:51:52 +01:00
router Post-formatting aesthetic and spacing corrections 2025-07-02 19:17:06 +01:00
service fix(relations): improve thread pagination and include root event 2025-08-10 18:22:20 +01:00
web docs: Add vias to matrix.to links 2025-07-24 13:31:58 +01:00