From 5cfd21c1ef1abdafb29735ccc85bd062e523c5f6 Mon Sep 17 00:00:00 2001 From: David Zhao Date: Wed, 7 Sep 2022 18:33:28 -0700 Subject: [PATCH] Fix inaccurate participant count due to storing old data (#992) --- pkg/service/roommanager.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/service/roommanager.go b/pkg/service/roommanager.go index dade43953..4034fbd72 100644 --- a/pkg/service/roommanager.go +++ b/pkg/service/roommanager.go @@ -321,7 +321,7 @@ func (r *RoomManager) StartSession( } // update room store with new numParticipants - updateParticipantCount(protoRoom) + updateParticipantCount(room.ToProto()) clientMeta := &livekit.AnalyticsClientMeta{Region: r.currentNode.Region, Node: r.currentNode.Id} r.telemetry.ParticipantJoined(ctx, protoRoom, participant.ToProto(), pi.Client, clientMeta)