Skip to content

Commit

Permalink
Merge pull request #185 from xmtp/np/inbox-id-private-preference
Browse files Browse the repository at this point in the history
Add allow and deny protos for inbox id
  • Loading branch information
nplasterer authored May 18, 2024
2 parents b4aaaaf + d182f01 commit 216f4b1
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions proto/message_contents/private_preferences.proto
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,19 @@ message PrivatePreferencesAction {
repeated string wallet_addresses = 1;
}

// Allow V3 1:1 direct message (DM) access
message AllowInboxId {
// Add the given inbox id to the allow list
repeated string inbox_ids = 1;
}

// Deny (block) V3 1:1 direct message (DM) access
message DenyInboxId {
// Add the given inbox id to the deny list
repeated string inbox_ids = 1;
}


// Allow Group access
message AllowGroup {
// Add the given group_ids to the allow list
Expand All @@ -43,6 +56,8 @@ message PrivatePreferencesAction {
DenyAddress deny_address = 2;
AllowGroup allow_group = 3;
DenyGroup deny_group = 4;
AllowInboxId allow_inbox_id = 5;
DenyInboxId deny_inbox_id = 6;
}
}

Expand Down

0 comments on commit 216f4b1

Please sign in to comment.