require participant broadcast when metadata/attributes are set in token (#4266)

This commit is contained in:
Paul Wells
2026-01-26 14:22:30 -08:00
committed by GitHub
parent b61799ecd8
commit 700e1788f2
+1
View File
@@ -368,6 +368,7 @@ func NewParticipant(params ParticipantParams) (*ParticipantImpl, error) {
onClose: make(map[string]func(types.LocalParticipant)),
telemetryGuard: &telemetry.ReferenceGuard{},
nextSubscribedDataTrackHandle: uint16(rand.Intn(256)),
requireBroadcast: params.Grants.Metadata != "" || len(params.Grants.Attributes) != 0,
}
p.setupSignalling()