From abee3c3403c96abd3103571f3b1fee9381d6193a Mon Sep 17 00:00:00 2001 From: Raja Subramanian Date: Thu, 26 Sep 2024 10:43:09 +0530 Subject: [PATCH] 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. --- pkg/rtc/participant.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/rtc/participant.go b/pkg/rtc/participant.go index 62b26681..3daffe4a 100644 --- a/pkg/rtc/participant.go +++ b/pkg/rtc/participant.go @@ -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: