Use the IsAgent check for transcription forwarding. (#3047)

VideoGrant could have the agent flag set.
This commit is contained in:
Raja Subramanian
2024-09-26 13:12:32 +05:30
committed by GitHub
parent abee3c3403
commit 49be2514e0
+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.IsAgent() {
shouldForwardData = false
}
case *livekit.DataPacket_ChatMessage: