mirror of
https://github.com/vector-im/element-call.git
synced 2026-03-19 06:20:25 +00:00
fix always getting pickup sound
Signed-off-by: Timo K <toger5@hotmail.de>
This commit is contained in:
@@ -378,6 +378,7 @@ export const InCallView: FC<InCallViewProps> = ({
|
||||
|
||||
// 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);
|
||||
|
||||
Reference in New Issue
Block a user