From 7a866a43837eb349d8f5fc1c529273c59a084022 Mon Sep 17 00:00:00 2001 From: Timo K Date: Fri, 12 Sep 2025 15:05:20 +0200 Subject: [PATCH] fix always getting pickup sound Signed-off-by: Timo K --- src/room/InCallView.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/room/InCallView.tsx b/src/room/InCallView.tsx index 1b24d0f0..c1244a2a 100644 --- a/src/room/InCallView.tsx +++ b/src/room/InCallView.tsx @@ -378,6 +378,7 @@ export const InCallView: FC = ({ // When waiting for pickup, loop a waiting sound useEffect((): void | (() => void) => { + if (callPickupState !== "ringing") return; const interval = window.setInterval(() => { void pickupPhaseAudio?.playSound("waiting"); }, PICKUP_SOUND_INTERVAL);