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_SipDtmf:
|
||||||
case *livekit.DataPacket_Transcription:
|
case *livekit.DataPacket_Transcription:
|
||||||
if p.Kind() != livekit.ParticipantInfo_AGENT {
|
if !p.IsAgent() {
|
||||||
shouldForwardData = false
|
shouldForwardData = false
|
||||||
}
|
}
|
||||||
case *livekit.DataPacket_ChatMessage:
|
case *livekit.DataPacket_ChatMessage:
|
||||||
|
|||||||
Reference in New Issue
Block a user