Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/eleven-impalas-study.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"github.com/livekit/protocol": patch
---

Remove unused kinds
4 changes: 0 additions & 4 deletions auth/grants.go
Original file line number Diff line number Diff line change
Expand Up @@ -472,10 +472,6 @@ func kindToProto(sourceStr string) livekit.ParticipantInfo_Kind {
return livekit.ParticipantInfo_SIP
case "agent":
return livekit.ParticipantInfo_AGENT
case "forwarded":
return livekit.ParticipantInfo_FORWARDED
case "cloud_agent":
return livekit.ParticipantInfo_CLOUD_AGENT
default:
return livekit.ParticipantInfo_STANDARD
}
Expand Down
2 changes: 1 addition & 1 deletion auth/grants_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func TestGrants(t *testing.T) {
}

func TestParticipantKind(t *testing.T) {
const kindMin, kindMax = livekit.ParticipantInfo_STANDARD, livekit.ParticipantInfo_CLOUD_AGENT
const kindMin, kindMax = livekit.ParticipantInfo_STANDARD, livekit.ParticipantInfo_AGENT
for k := kindMin; k <= kindMax; k++ {
k := k
t.Run(k.String(), func(t *testing.T) {
Expand Down
Loading