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

feat: Adds AllowGroup and DenyGroup messages #146

Merged
merged 7 commits into from
Feb 15, 2024

Conversation

tuddman
Copy link
Contributor

@tuddman tuddman commented Feb 13, 2024

Summary

  • renames Allow to AllowAddress
  • renames Block to DenAddress
  • adds AllowGroup message type
  • adds DenyGroup message type

repeated string wallet_addresses = 1;
// Add the given group_ids to the block list
repeated string group_ids = 2;
Copy link
Collaborator

@neekolas neekolas Feb 13, 2024

Choose a reason for hiding this comment

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

I think we are going to want a separate action for these, rather than a second field in the existing action. Otherwise you could specify both in the same action, which is confusing.

We can safely rename the existing type names to something like AllowDM for clarity (although all our SDKs will have to update their import statements)

Copy link
Contributor Author

@tuddman tuddman Feb 14, 2024

Choose a reason for hiding this comment

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

Sure. I updated to pull out AllowGroup and BlockGroup DenyGroup into their own message types.
and renamed Allow to AllowDM and Block to BlockDM DenyDM. I'll update the SDK side next.

@tuddman tuddman changed the title feat: Adds group_ids to PrivatePreferencesAction feat: Adds AllowGroup and BlockGroup messages Feb 14, 2024
@tuddman tuddman marked this pull request as ready for review February 14, 2024 15:14
@tuddman tuddman requested review from fabriguespe and a team as code owners February 14, 2024 15:14
// Grant Group access
message AllowGroup {
// Add the given group_ids to the allow list
repeated string group_ids = 2;
Copy link
Collaborator

Choose a reason for hiding this comment

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

group_ids should repeated bytes

Copy link
Collaborator

@neekolas neekolas left a comment

Choose a reason for hiding this comment

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

We've opted for group_id to be treated as bytes everywhere

@tuddman tuddman changed the title feat: Adds AllowGroup and BlockGroup messages feat: Adds AllowGroup and DenyGroup messages Feb 15, 2024
@tuddman tuddman merged commit 5fb756a into main Feb 15, 2024
8 checks passed
@tuddman tuddman deleted the st/group-preference-actions branch February 15, 2024 20:25
Copy link

🎉 This PR is included in version 3.43.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants