Skip to content

Commit

Permalink
Log instead of crashing
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksandar-apostolov committed Oct 30, 2024
1 parent 25601ea commit a9b815d
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1094,6 +1094,11 @@ public class CallState(
}

internal fun getOrCreateParticipant(participant: Participant): ParticipantState {
if (participant.session_id.isEmpty()) {
// Empty session ID is technically allowed but should not happen.
logger.w { "A user with empty session ID joined the call." }
}

val participantState = getOrCreateParticipant(participant.session_id, participant.user_id)
participantState.updateFromParticipantInfo(participant)

Expand Down

0 comments on commit a9b815d

Please sign in to comment.