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)),
|
onClose: make(map[string]func(types.LocalParticipant)),
|
||||||
telemetryGuard: &telemetry.ReferenceGuard{},
|
telemetryGuard: &telemetry.ReferenceGuard{},
|
||||||
nextSubscribedDataTrackHandle: uint16(rand.Intn(256)),
|
nextSubscribedDataTrackHandle: uint16(rand.Intn(256)),
|
||||||
|
requireBroadcast: params.Grants.Metadata != "" || len(params.Grants.Attributes) != 0,
|
||||||
}
|
}
|
||||||
p.setupSignalling()
|
p.setupSignalling()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user