Skip to content

Commit

Permalink
retain first external group snapshot (#2073)
Browse files Browse the repository at this point in the history
  • Loading branch information
erikolsson authored Jan 17, 2025
1 parent 5847a36 commit a7e1f7c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/node/events/stream_viewstate_mls.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,9 @@ func (r *streamViewImpl) GetMlsGroupState() (*mls_tools.MlsGroupState, error) {
case *protocol.MemberPayload_Mls_:
switch content.Mls.Content.(type) {
case *protocol.MemberPayload_Mls_InitializeGroup_:
mlsGroupState.ExternalGroupSnapshot = content.Mls.GetInitializeGroup().ExternalGroupSnapshot
if len(mlsGroupState.ExternalGroupSnapshot) == 0 {
mlsGroupState.ExternalGroupSnapshot = content.Mls.GetInitializeGroup().ExternalGroupSnapshot
}
case *protocol.MemberPayload_Mls_ExternalJoin_:
mlsGroupState.Commits = append(mlsGroupState.Commits, content.Mls.GetExternalJoin().Commit)
case *protocol.MemberPayload_Mls_WelcomeMessage_:
Expand Down

0 comments on commit a7e1f7c

Please sign in to comment.