Skip to content

Commit

Permalink
fix rejectCall
Browse files Browse the repository at this point in the history
  • Loading branch information
clairton committed May 17, 2023
1 parent 25c7150 commit 4c86f6b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "unoapi-cloud",
"version": "0.22.1-dev",
"version": "0.22.2",
"description": "Unoapi Cloud",
"main": "./lib/index.js",
"types": "./lib/index.d.ts",
Expand Down
4 changes: 3 additions & 1 deletion src/services/socket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,9 @@ export const connect = async ({
sock && sock.ev.on(event, callback)
}

const rejectCall = sock && (sock as WASocket).rejectCall
const rejectCall: rejectCall = async (callId: string, callFrom: string) => {
return sock && (sock as WASocket).rejectCall(callId, callFrom)
}

connect()

Expand Down

0 comments on commit 4c86f6b

Please sign in to comment.