Skip to content

Commit

Permalink
Merge pull request #180 from xmtp/nm/non-breaking-inbox-id-updates
Browse files Browse the repository at this point in the history
Inbox ID updates
  • Loading branch information
neekolas authored May 2, 2024
2 parents 673af96 + c14291f commit f1e8269
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
16 changes: 16 additions & 0 deletions proto/mls/database/intents.proto
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,22 @@ message RemoveMembersData {
}
}

// The data required to make a commit that updates group membership
// Handles both Add and Remove actions
message UpdateGroupMembershipData {
// V1 of UpdateGroupMembershipPublishData
message V1 {
// Contains delta of membership updates that need to be applied
map<string, uint64> membership_updates = 1;
// Contains the list of members that will be removed
repeated string removed_members = 2;
}

oneof version {
V1 v1 = 1;
}
}

// The data required to update group metadata
message UpdateMetadataData {
// V1 of UpdateMetadataPublishData
Expand Down
2 changes: 2 additions & 0 deletions proto/mls/message_contents/group_metadata.proto
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@ option java_package = "org.xmtp.proto.mls.message.contents";
// Parent message for group metadata
message GroupMetadataV1 {
ConversationType conversation_type = 1;
// This will be removed soon
string creator_account_address = 2;
PolicySet policies = 3;
string creator_inbox_id = 4;
}

// Defines the type of conversation
Expand Down

0 comments on commit f1e8269

Please sign in to comment.