mirror of
https://github.com/livekit/livekit.git
synced 2026-08-27 22:34:25 +00:00
Use the IsAgent check for transcription forwarding. (#3047)
VideoGrant could have the agent flag set.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user