handle SyncState in join request (#3839)

* handle SyncState in join request

* check for nil in function
This commit is contained in:
Raja Subramanian
2025-08-08 10:14:02 +05:30
committed by GitHub
parent 5d44cf6d57
commit f275f592ed
5 changed files with 33 additions and 6 deletions
+8
View File
@@ -696,6 +696,14 @@ func (r *Room) ResumeParticipant(
return nil
}
func (r *Room) HandleSyncState(participant types.LocalParticipant, state *livekit.SyncState) error {
if state != nil {
return r.onSyncState(participant, state)
}
return nil
}
func (r *Room) onSyncState(participant types.LocalParticipant, state *livekit.SyncState) error {
pLogger := participant.GetLogger()
pLogger.Infow("setting sync state", "state", logger.Proto(state))