Forward ChatMessage (#3005)
* Forward ChatMessage * fill in participantIdentity * remove redundant setting
This commit is contained in:
@@ -1633,6 +1633,8 @@ func (p *ParticipantImpl) onDataMessage(kind livekit.DataPacket_Kind, data []byt
|
|||||||
if p.Kind() == livekit.ParticipantInfo_AGENT {
|
if p.Kind() == livekit.ParticipantInfo_AGENT {
|
||||||
shouldForward = true
|
shouldForward = true
|
||||||
}
|
}
|
||||||
|
case *livekit.DataPacket_ChatMessage:
|
||||||
|
shouldForward = true
|
||||||
default:
|
default:
|
||||||
p.pubLogger.Warnw("received unsupported data packet", nil, "payload", payload)
|
p.pubLogger.Warnw("received unsupported data packet", nil, "payload", payload)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user