Do not send ParticipantLeft webhook event unless connected successfully. (#1234)

Fixes #1130
This commit is contained in:
David Zhao
2022-12-18 17:37:55 -08:00
committed by GitHub
parent dc3f566f1a
commit 33902a9f2a
9 changed files with 141 additions and 109 deletions
+1 -1
View File
@@ -475,7 +475,7 @@ func Test_AnalyticsSentWhenParticipantLeaves(t *testing.T) {
fixture.sut.ParticipantJoined(context.Background(), room, participantInfo, nil, nil)
// do
fixture.sut.ParticipantLeft(context.Background(), room, participantInfo)
fixture.sut.ParticipantLeft(context.Background(), room, participantInfo, true)
// should not be called if there are no track stats
time.Sleep(time.Millisecond * 500)