mirror of
https://github.com/livekit/livekit.git
synced 2026-08-29 05:29:32 +00:00
require participant broadcast when metadata/attributes are set in token (#4266)
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user