From 49be2514e00258957f47ff9b20e5ca9e36607e50 Mon Sep 17 00:00:00 2001 From: Raja Subramanian Date: Thu, 26 Sep 2024 13:12:32 +0530 Subject: [PATCH] Use the IsAgent check for transcription forwarding. (#3047) VideoGrant could have the agent flag set. --- 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 3daffe4aa..3b6fe2036 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.IsAgent() { shouldForwardData = false } case *livekit.DataPacket_ChatMessage: