Skip to content

Commit 17355a9

Browse files
committed
feat(mls-rs): Merge the final version of the ratchet tree with the group state in the case of a self removal
1 parent 3add368 commit 17355a9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

mls-rs/src/group/message_processor.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -680,6 +680,8 @@ pub(crate) trait MessageProcessor: Send + Sync {
680680
self.group_state_mut().pending_reinit = Some(reinit.proposal.clone());
681681
CommitEffect::ReInit(reinit)
682682
} else if let Some(remove_proposal) = self_removed {
683+
// since we are removed, this is the last version of the ratchet tree we're ever gonna see
684+
self.group_state_mut().public_tree = provisional_state.public_tree.clone();
683685
let new_epoch = NewEpoch::new(self.group_state().clone(), &provisional_state);
684686
CommitEffect::Removed {
685687
remove_proposal,

0 commit comments

Comments
 (0)