Skip to content

Commit

Permalink
Add GroupUpdated transcript message (#187)
Browse files Browse the repository at this point in the history
## tl;dr

With the move to the new permissions system and the new identity system our old `GroupMembershipChanged` transcript message doesn't quite fit anymore. Missing metadata updates, and is blind to inbox IDs.

This introduces a new message type that is a better fit.
  • Loading branch information
neekolas authored May 20, 2024
2 parents 216f4b1 + 0fd391b commit 99b5de6
Showing 1 changed file with 28 additions and 1 deletion.
29 changes: 28 additions & 1 deletion proto/mls/message_contents/transcript_messages.proto
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,31 @@ message GroupMembershipChanges {
repeated MembershipChange installations_removed = 4;

// protolint:enable REPEATED_FIELD_NAMES_PLURALIZED
}
}

// A summary of the changes in a commit.
// Includes added/removed inboxes and changes to metadata
message GroupUpdated {
// An inbox that was added or removed in this commit
message Inbox {
string inbox_id = 1;
}

// A summary of a change to the mutable metadata
message MetadataFieldChange {
// The field that was changed
string field_name = 1;
// The previous value
optional string old_value = 2;
// The updated value
optional string new_value = 3;
}

string initiated_by_inbox_id = 1;
// The inboxes added in the commit
repeated Inbox added_inboxes = 2;
// The inboxes removed in the commit
repeated Inbox removed_inboxes = 3;
// The metadata changes in the commit
repeated MetadataFieldChange metadata_field_changes = 4;
}

0 comments on commit 99b5de6

Please sign in to comment.