Fix forwarding of transcription message. (#3044)

Had to introduce some flags in
https://github.com/livekit/livekit/pull/2950/files to do selective
forwarding, but messed up the sense of the transcription message forward
flag.
This commit is contained in:
Raja Subramanian
2024-09-26 10:43:09 +05:30
committed by GitHub
parent 10631e2de6
commit abee3c3403
+1 -1
View File
@@ -1676,7 +1676,7 @@ func (p *ParticipantImpl) onDataMessage(kind livekit.DataPacket_Kind, data []byt
}
case *livekit.DataPacket_SipDtmf:
case *livekit.DataPacket_Transcription:
if p.Kind() == livekit.ParticipantInfo_AGENT {
if p.Kind() != livekit.ParticipantInfo_AGENT {
shouldForwardData = false
}
case *livekit.DataPacket_ChatMessage: