diff --git a/app/phone-calls/hooks/use-make-call.ts b/app/phone-calls/hooks/use-make-call.ts index b6b188d..adc8f1a 100644 --- a/app/phone-calls/hooks/use-make-call.ts +++ b/app/phone-calls/hooks/use-make-call.ts @@ -40,9 +40,8 @@ export default function useMakeCall({ recipient, onHangUp }: Params) { // @ts-ignore window.ddd = outgoingConnection; - // TODO: setState("call_in_progress"); - // TODO: remove event listeners + outgoingConnection.once("accept", (call: Call) => setState("call_in_progress")); outgoingConnection.on("cancel", endCall); outgoingConnection.on("disconnect", endCall); outgoingConnection.on("error", (error) => {