Sync solo group after create in bindings #1501
Merged
+145
−27
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Our bindings create_group functions all create an async wrapper function around
xmtp_mls
create_group
andcreate_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