Skip to content

Commit

Permalink
Check that the remote particpant exists when processing a transcripti…
Browse files Browse the repository at this point in the history
…on message (#589)
  • Loading branch information
biglittlebigben authored Jan 8, 2025
1 parent d1396cc commit c551c7c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions room.go
Original file line number Diff line number Diff line change
Expand Up @@ -739,6 +739,10 @@ func (r *Room) handleTranscriptionReceived(transcription *livekit.Transcription)
publication = r.LocalParticipant.getPublication(transcription.TrackId)
} else {
rp := r.GetParticipantByIdentity(transcription.TranscribedParticipantIdentity)
if rp == nil {
r.log.Debugw("recieved transcription for unknown participant", "participant", transcription.TranscribedParticipantIdentity)
return
}
publication = rp.getPublication(transcription.TrackId)
p = rp
}
Expand Down

0 comments on commit c551c7c

Please sign in to comment.