set state call_in_progress
This commit is contained in:
parent
8e2e136d55
commit
c81d8e7937
@ -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) => {
|
||||
|
Loading…
Reference in New Issue
Block a user