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