Created
October 18, 2021 15:55
-
-
Save hieptl/3e34e53a46b6bff6a17138ad33f4ad29 to your computer and use it in GitHub Desktop.
Chat.tsx - Start Audio/Video Call - Ionic Chat App
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
const startAudioCall = () => { | |
if (cometChat && selectedConversation) { | |
setCallType(cometChat.CALL_TYPE.AUDIO); | |
} | |
}; | |
const startVideoCall = () => { | |
if (cometChat && selectedConversation) { | |
setCallType(cometChat.CALL_TYPE.VIDEO); | |
} | |
}; | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment