Skip to content

Commit

Permalink
Merge pull request #194 from xmtp/cv/dm-member-constraints
Browse files Browse the repository at this point in the history
Add optional DM member constraints to group immutable metadata
  • Loading branch information
cameronvoell authored Jul 30, 2024
2 parents 2834cfa + aa3be75 commit fafbfb3
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions proto/mls/message_contents/group_metadata.proto
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ message GroupMetadataV1 {
// This will be removed soon
string creator_account_address = 2;
string creator_inbox_id = 3;
// Should only be present for CONVERSATION_TYPE_DM
optional DmMembers dm_members = 4;
}

// Defines the type of conversation
Expand All @@ -21,3 +23,14 @@ enum ConversationType {
CONVERSATION_TYPE_DM = 2;
CONVERSATION_TYPE_SYNC = 3;
}

// Wrapper around an Inbox Id
message Inbox {
string inbox_id = 1;
}

// Ordering does not matter here
message DmMembers {
Inbox dm_member_one = 1;
Inbox dm_member_two = 2;
}

0 comments on commit fafbfb3

Please sign in to comment.