Resolve newer participant using higher precision join time. (#3360)

* Resolve newer participant using higher precision join time.

Also, keep it consistent based on participant SID if everything else is
the same.

* switch to compare semantics

* fix
This commit is contained in:
Raja Subramanian
2025-01-22 15:24:34 +05:30
committed by GitHub
parent 416dded86f
commit b4cf055c1c
4 changed files with 47 additions and 11 deletions
+1
View File
@@ -656,6 +656,7 @@ func (p *ParticipantImpl) ToProtoWithVersion() (*livekit.ParticipantInfo, utils.
Name: grants.Name,
State: p.State(),
JoinedAt: p.ConnectedAt().Unix(),
JoinedAtMs: p.ConnectedAt().UnixMilli(),
Version: v,
Permission: grants.Video.ToPermission(),
Metadata: grants.Metadata,