Store identity in participant update cache. (#2320)
Need to store identity of other partiicpant in cache so that it can be sent with the disconnected participant update. Side note: Feels like the cache can be made to hold the full proto to make things simpler, but just adding a field for now.
This commit is contained in:
@@ -76,13 +76,14 @@ type downTrackState struct {
|
||||
// ---------------------------------------------------------------
|
||||
|
||||
type participantUpdateInfo struct {
|
||||
identity livekit.ParticipantIdentity
|
||||
version uint32
|
||||
state livekit.ParticipantInfo_State
|
||||
updatedAt time.Time
|
||||
}
|
||||
|
||||
func (p participantUpdateInfo) String() string {
|
||||
return fmt.Sprintf("version: %d, state: %s, updatedAt: %s", p.version, p.state.String(), p.updatedAt.String())
|
||||
return fmt.Sprintf("identity: %s, version: %d, state: %s, updatedAt: %s", p.identity, p.version, p.state.String(), p.updatedAt.String())
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user