-
Notifications
You must be signed in to change notification settings - Fork 5
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
Changes from 1 commit
ccfa52b
3fe5d1d
e7dd83f
2312ae5
dd3e754
a9c94ca
e3fba9c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,13 +15,19 @@ option java_package = "org.xmtp.proto.message.contents"; | |
// preference store. The only current actions are allow and block. | ||
// Other actions may be added later | ||
message PrivatePreferencesAction { | ||
// Add the given wallet addresses to the allow list | ||
// Grant access | ||
message Allow { | ||
// Add the given wallet addresses to the allow list | ||
repeated string wallet_addresses = 1; | ||
// Add the given group_ids to the allow list | ||
repeated string group_ids = 2; | ||
} | ||
// Add the given wallet addresses to the block list | ||
// Deny access | ||
message Block { | ||
// Add the given wallet addresses to the block list | ||
repeated string wallet_addresses = 1; | ||
// Add the given group_ids to the block list | ||
repeated string group_ids = 2; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sure. I updated to pull out |
||
} | ||
|
||
oneof message_type { | ||
|
@@ -32,7 +38,5 @@ message PrivatePreferencesAction { | |
|
||
// The payload that goes over the wire | ||
message PrivatePreferencesPayload { | ||
oneof version { | ||
Ciphertext v1 = 1; | ||
} | ||
} | ||
oneof version { Ciphertext v1 = 1; } | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
group_ids
shouldrepeated bytes