Skip to content
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

Sync solo group after create in bindings #1501

Conversation

cameronvoell
Copy link
Contributor

@cameronvoell cameronvoell commented Jan 14, 2025

Our bindings create_group functions all create an async wrapper function around xmtp_mls create_group and create_group_with_members, but depending on whether you add members or not, your group will end up in a different state which is confusing. (either ready to update metadata, or requiring a sync first)

This PR keeps xmtp_mls create_group function as is, but adds a group.sync() in create_group bindings functions so that after you call create_group in bindings, you are ready to update metadata + permissions etc, regardless of whether you created the group with additional members

@cameronvoell cameronvoell force-pushed the cv/sync-solo-group-after-create-in-bindings branch from 2c3c6b8 to e6b96c2 Compare January 14, 2025 16:11
@cameronvoell cameronvoell force-pushed the cv/sync-solo-group-after-create-in-bindings branch 2 times, most recently from 408e2f9 to 5527aaf Compare January 14, 2025 16:59
@cameronvoell cameronvoell marked this pull request as ready for review January 14, 2025 16:59
@cameronvoell cameronvoell requested a review from a team as a code owner January 14, 2025 16:59
@cameronvoell cameronvoell requested a review from mchenani January 14, 2025 17:03
@cameronvoell cameronvoell merged commit 9341986 into mc/test-update-policy-on-empty-group Jan 14, 2025
15 checks passed
@cameronvoell cameronvoell deleted the cv/sync-solo-group-after-create-in-bindings branch January 14, 2025 17:32
cameronvoell added a commit that referenced this pull request Jan 14, 2025
* test(policy): update policies of an empty group

* Sync solo group after create in bindings (#1501)

* sync solo group after create in bindings

* fix node bindings style

---------

Co-authored-by: cameronvoell <[email protected]>

---------

Co-authored-by: Cameron Voell <[email protected]>
Co-authored-by: cameronvoell <[email protected]>
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.

3 participants