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

Fix group update #654

Closed
wants to merge 4 commits into from
Closed

Fix group update #654

wants to merge 4 commits into from

Conversation

tuddman
Copy link
Contributor

@tuddman tuddman commented Apr 12, 2024

Summary

After issue-ing dev/gen-proto.sh ,
Tests were failing with

error[E0063]: missing field `update_group_name_policy` in initializer of `xmtp_proto::xmtp::mls::message_contents::PolicySet`
   --> xmtp_mls/src/groups/group_permissions.rs:295:12
    |
295 |         Ok(PolicySetProto {
    |            ^^^^^^^^^^^^^^ missing `update_group_name_policy`

This patch fixes the acute issue of the missing field, but idk if there is more work to do here to have it correctly implemented?

Comment on lines -327 to -342
fn default_add_installation_policy() -> MembershipPolicies {
MembershipPolicies::allow()
}

fn default_remove_installation_policy() -> MembershipPolicies {
MembershipPolicies::deny()
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These seemed like a bit of needless indirection to only be called in the new() constructor above.

remove_installation_policy: default_remove_installation_policy(),
add_installation_policy: MembershipPolicies::allow(),
remove_installation_policy: MembershipPolicies::deny(),
update_group_name_policy: MembershipPolicies::allow()
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cameronvoell What should this update_group_name_policy be default set to?

cc @neekolas

@tuddman tuddman mentioned this pull request Apr 12, 2024
@tuddman tuddman requested a review from cameronvoell April 13, 2024 06:57
@tuddman
Copy link
Contributor Author

tuddman commented Apr 13, 2024

Closing. The sames fixes were brought in #643

@tuddman tuddman closed this Apr 13, 2024
@tuddman tuddman deleted the st/fix-group-update branch May 2, 2024 19:15
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