Skip to content

Commit 2d5bce9

Browse files
authored
Changeset for ForwardingParticipant change (#1011)
* Changeset for ForwardingParticipant change #1008 * fix new type
1 parent 549a29a commit 2d5bce9

3 files changed

Lines changed: 9 additions & 1 deletion

File tree

.changeset/fifty-bears-sleep.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"github.com/livekit/protocol": minor
3+
"@livekit/protocol": minor
4+
---
5+
6+
Add ForwardParticipant to room service

auth/grants.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -443,6 +443,8 @@ func kindToProto(sourceStr string) livekit.ParticipantInfo_Kind {
443443
return livekit.ParticipantInfo_SIP
444444
case "agent":
445445
return livekit.ParticipantInfo_AGENT
446+
case "forwarded":
447+
return livekit.ParticipantInfo_FORWARDED
446448
default:
447449
return livekit.ParticipantInfo_STANDARD
448450
}

auth/grants_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ func TestGrants(t *testing.T) {
8787
}
8888

8989
func TestParticipantKind(t *testing.T) {
90-
const kindMin, kindMax = livekit.ParticipantInfo_STANDARD, livekit.ParticipantInfo_AGENT
90+
const kindMin, kindMax = livekit.ParticipantInfo_STANDARD, livekit.ParticipantInfo_FORWARDED
9191
for k := kindMin; k <= kindMax; k++ {
9292
k := k
9393
t.Run(k.String(), func(t *testing.T) {

0 commit comments

Comments
 (0)