fix: removed country code validation
This commit is contained in:
parent
080c07b22b
commit
831e6ee499
@ -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} ...`
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user