Skip to content

Commit

Permalink
feat(mls-rs): Merge the final version of the ratchet tree with the gr…
Browse files Browse the repository at this point in the history
…oup state in the case of a self removal
  • Loading branch information
ManevilleF committed Dec 23, 2024
1 parent 3add368 commit 17355a9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mls-rs/src/group/message_processor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -680,6 +680,8 @@ pub(crate) trait MessageProcessor: Send + Sync {
self.group_state_mut().pending_reinit = Some(reinit.proposal.clone());
CommitEffect::ReInit(reinit)
} else if let Some(remove_proposal) = self_removed {
// since we are removed, this is the last version of the ratchet tree we're ever gonna see
self.group_state_mut().public_tree = provisional_state.public_tree.clone();
let new_epoch = NewEpoch::new(self.group_state().clone(), &provisional_state);
CommitEffect::Removed {
remove_proposal,
Expand Down

0 comments on commit 17355a9

Please sign in to comment.