-
Notifications
You must be signed in to change notification settings - Fork 39
Add docs around pagination of the conversation list #364
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Add docs around pagination of the conversation list #364
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
bbf8d18 to
fae3998
Compare
fae3998 to
a05d974
Compare
…ocs_around_pagination_of_the_conversation_list
|
|
||
| Apps should only sort conversations by `lastActivityNs` when paginating if they expect not to receive new messages in the conversations unexpectedly (apps that don't utilize streaming), or where the page size is very large and missed conversations are acceptable. | ||
|
|
||
| To paginate against a stably sorted list you should use the `createdAtBeforeNs` parameter for filtering and an `orderBy` of `createdAt`, and perform the final sort of conversations in your app. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is now createdBeforeNs
Document conversation list pagination and update Swift DM/group examples in list.mdx to show
|
jhaaaa
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed with Nick. Good to go!

Add pagination documentation for the chat app conversation list to guide list retrieval behavior
Update list.mdx to document conversation list pagination and correct Swift examples. The changes include:
limitwithcreatedAtNsorlastActivityNs, default sort behavior, and instability warnings when sorting bylastActivityNs.lastActivityBeforeNsand by creation time usingcreatedAtBeforeNswithorderBy = CREATED_AT.lastActivityBeforeNs/lastActivityAtNsandcreatedAtBeforeNs/createdAtNswith appropriateorderBy.awaitfrom Swift calls toclient.conversations.listDms(consentState: .allowed)andclient.conversations.listGroups(consentState: .allowed).📍Where to Start
Start with the new pagination section and code examples in list.mdx.
Macroscope summarized 2356c30.