Skip to content

Fix/friends pagination cursor - #429

Draft
zomop wants to merge 6 commits into
NotValra:mainfrom
zomop:fix/friends-pagination-cursor
Draft

zomop wants to merge 6 commits into
NotValra:mainfrom
zomop:fix/friends-pagination-cursor

Conversation

@zomop

@zomop zomop commented Nov 11, 2026 •

Copy link
Copy Markdown

I found a few issues with friends and conversation pagination.

Some requests could stop before all pages were fetched, repeated cursors could cause pagination to get stuck, and incomplete responses could overwrite valid cached data. I also found that numeric and string user IDs were not always matched correctly when checking trusted friends.

I fixed the pagination handling, added cursor validation, improved response validation, and made sure incomplete requests preserve the existing cache. I also fixed trusted-friend ID matching.

Tests:

  • 27 tests passed, 0 failed.
  • Chrome and Firefox builds passed.
  • Firefox lint passed.
  • Diff check passed.

I think that's pretty much it.

@zomop
zomop marked this pull request as draft November 11, 2026 09:43
@zomop
zomop marked this pull request as ready for review November 11, 2026 09:59
@zomop
zomop marked this pull request as draft November 11, 2026 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant