Remove check for rust on TrackSubscribed

This commit is contained in:
aoife cassidy
2024-08-16 13:07:38 -07:00
parent 210fc18281
commit bdf01bbcef
2 changed files with 2 additions and 9 deletions

View File

@@ -92,13 +92,9 @@ func (c ClientInfo) ComplyWithCodecOrderInSDPAnswer() bool {
return !((c.isLinux() || c.isAndroid()) && c.isFirefox())
}
// Rust SDK can't decode unknown signal message (TrackSubscribed and ErrorResponse)
func (c ClientInfo) SupportTrackSubscribedEvent() bool {
return !(c.ClientInfo.GetSdk() == livekit.ClientInfo_RUST && c.ClientInfo.GetProtocol() < 10)
}
// Rust SDK can't decode unknown signal message (ErrorResponse)
func (c ClientInfo) SupportErrorResponse() bool {
return c.SupportTrackSubscribedEvent()
return !(c.ClientInfo.GetSdk() == livekit.ClientInfo_RUST && c.ClientInfo.GetProtocol() < 10)
}
// compareVersion compares a semver against the current client SDK version

View File

@@ -313,9 +313,6 @@ func (p *ParticipantImpl) sendTrackUnpublished(trackID livekit.TrackID) {
}
func (p *ParticipantImpl) sendTrackHasBeenSubscribed(trackID livekit.TrackID) {
if !p.params.ClientInfo.SupportTrackSubscribedEvent() {
return
}
_ = p.writeMessage(&livekit.SignalResponse{
Message: &livekit.SignalResponse_TrackSubscribed{
TrackSubscribed: &livekit.TrackSubscribed{