From dd978b0e6023ca03a375528026cf53f8c21c9946 Mon Sep 17 00:00:00 2001 From: Timo K Date: Fri, 19 Sep 2025 17:26:31 +0200 Subject: [PATCH] fix regression test Signed-off-by: Timo K --- src/state/CallViewModel.test.ts | 2 +- src/state/CallViewModel.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/state/CallViewModel.test.ts b/src/state/CallViewModel.test.ts index 3266c67a..ef4ef762 100644 --- a/src/state/CallViewModel.test.ts +++ b/src/state/CallViewModel.test.ts @@ -1274,7 +1274,7 @@ describe("waitForCallPickup$", () => { }, }); - expectObservable(vm.callPickupState$).toBe("a 9ms b 29ms c", { + expectObservable(vm.callPickupState$).toBe("a 9ms b 19ms c", { a: "unknown", b: "ringing", c: "timeout", diff --git a/src/state/CallViewModel.ts b/src/state/CallViewModel.ts index 072e84dc..462e4afc 100644 --- a/src/state/CallViewModel.ts +++ b/src/state/CallViewModel.ts @@ -975,7 +975,7 @@ export class CallViewModel extends ViewModel { if (livekitConnectionState === ConnectionState.Disconnected) { // Do not ring until we're connected. return "unknown" as const; - } else if (someoneElseJoined && ring !== null) { + } else if (someoneElseJoined) { return "success" as const; } // Show the ringing state of the most recent ringing attempt.