only increment participant version after updates (#1646)

* only increment participant version after updates

* fix test util

* cleanup

* test uptrackmanager permission update version check
This commit is contained in:
Paul Wells
2023-04-22 17:48:10 -07:00
committed by GitHub
parent a77eb2a07d
commit 745410bd69
10 changed files with 260 additions and 104 deletions
+1
View File
@@ -683,6 +683,7 @@ func newParticipantForTestWithOpts(identity livekit.ParticipantIdentity, opts *p
ClientInfo: ClientInfo{ClientInfo: opts.clientInfo},
Logger: LoggerWithParticipant(logger.GetLogger(), identity, sid, false),
Telemetry: &telemetryfakes.FakeTelemetryService{},
VersionGenerator: utils.NewDefaultTimedVersionGenerator(),
})
p.isPublisher.Store(opts.publisher)
p.updateState(livekit.ParticipantInfo_ACTIVE)