Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
|
||
| ## Manually control history sync | ||
|
|
||
| By default, history sync runs automatically. For more control over the sync flow, use these methods to manually manage archives. |
There was a problem hiding this comment.
We should add a warning that this behavior is going to end in a future release. v1.11 maybe? We're turning the auto-request on init off because it's a black box, and we don't want to cause unnecessary network charges for whoever is using it. (The responding payload may be giant)
There was a problem hiding this comment.
Update: We ripped the bandaid off and this is going out in 1.10 :)
We will no longer be issuing auto-sync-requests when 1.10 is out.
| ```tsx [React Native] | ||
| // Coming soon | ||
| ``` | ||
|
|
There was a problem hiding this comment.
One more function to placehold: sync_device_sync_groups and to note that sync_preferences is getting deprecated in favor of this.
|
|
||
| ### List available archives | ||
|
|
||
| Get a list of archives available for download from other installations. |
There was a problem hiding this comment.
We should mention that this method does not sync from the network, and if you believe you are out-of-date, you should sync the sync groups with sync_all_device_sync_groups before.
| # Enable history sync for apps built with XMTP | ||
|
|
||
| :::warning[This feature is in beta] | ||
| :::warning[This feature is in beta] |
There was a problem hiding this comment.
@codabrink do you think it is OK to remove this warning?
ApprovabilityVerdict: Approved This PR contains only documentation updates to two .mdx files that you own. The changes update terminology, add API examples, and remove outdated content. No runtime code is affected. You can customize Macroscope's approvability policy. Learn more. |
Document manual history sync control with
sendSyncRequest()in XMTP chat appssendSyncRequest()rather than automatically on client initialization, and adds a new 'Control history sync' section with subsections for sending requests, listing archives, and processing sync archives.Changes since #619 opened
ArchiveOptionsparameter including fieldsstartNs,endNs,archiveElements, andexcludeDisappearingMessageswith their defaults and descriptions, and updated code examples in both Kotlin and Swift for sync request and sync archive operations to demonstrate both default usage with no arguments and custom usage with specified options [10305bc]client.sendSyncRequest()method invocation in documentation examples to acceptoptionsandserverUrlarguments [5707b8e]Macroscope summarized 8a4757d.