diff --git a/proto/mls/database/intents.proto b/proto/mls/database/intents.proto index 7c1b92a0..c82b5f2b 100644 --- a/proto/mls/database/intents.proto +++ b/proto/mls/database/intents.proto @@ -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 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 diff --git a/proto/mls/message_contents/group_metadata.proto b/proto/mls/message_contents/group_metadata.proto index 3ea5badc..5f77b678 100644 --- a/proto/mls/message_contents/group_metadata.proto +++ b/proto/mls/message_contents/group_metadata.proto @@ -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