fix: removed country code validation

This commit is contained in:
Shariq Ansari 2024-03-18 18:02:42 +05:30
parent 080c07b22b
commit 831e6ee499

View File

@ -379,13 +379,13 @@ function handleDisconnectedIncomingCall() {
async function makeOutgoingCall(number) { async function makeOutgoingCall(number) {
// check if number has a country code // check if number has a country code
if (number?.replace(/[^0-9+]/g, '').length == 10) { // if (number?.replace(/[^0-9+]/g, '').length == 10) {
$dialog({ // $dialog({
title: 'Invalid Mobile Number', // title: 'Invalid Mobile Number',
message: `${number} is not a valid mobile number. Either add a country code or check the number again.`, // message: `${number} is not a valid mobile number. Either add a country code or check the number again.`,
}) // })
return // return
} // }
if (device) { if (device) {
log.value = `Attempting to call ${number} ...` log.value = `Attempting to call ${number} ...`