Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
static getCall(uid,callType,userType){
if(userType == "user"){
return new CometChat.Call(uid, callType, CometChat.RECEIVER_TYPE.USER);
}else{
return new CometChat.Call(uid, callType, CometChat.RECEIVER_TYPE.GROUP);
}
}
static getCall(uid,callType,userType){
if(userType == "user"){
return new CometChat.Call(uid, callType, CometChat.RECEIVER_TYPE.USER);
}else{
return new CometChat.Call(uid, callType, CometChat.RECEIVER_TYPE.GROUP);
}
}