Skip to content

Commit

Permalink
Ensure default outgoing ID is in self participants
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Jul 29, 2024
1 parent 8f168fe commit 164a3d3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions portal.go
Original file line number Diff line number Diff line change
Expand Up @@ -1638,6 +1638,12 @@ func (portal *Portal) UpdateMetadata(ctx context.Context, user *User, info *gmpr
portal.SendMode = info.SendMode
update = true
}
err := user.AddSelfParticipantID(ctx, info.DefaultOutgoingID)
if err != nil {
portal.zlog.Warn().Err(err).
Str("participant_id", info.DefaultOutgoingID).
Msg("Failed to save default outgoing ID as a self participant ID")
}
if portal.OutgoingID != info.DefaultOutgoingID {
portal.zlog.Debug().
Str("old_id", portal.OutgoingID).
Expand Down

0 comments on commit 164a3d3

Please sign in to comment.