set state call_in_progress

This commit is contained in:
m5r 2021-09-01 07:12:47 +08:00
parent 8e2e136d55
commit c81d8e7937

View File

@ -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) => {