1
0
forked from test/crm

fix: only show call popup on status update for incoming call

This commit is contained in:
Shariq Ansari 2025-02-17 18:13:03 +05:30
parent fbc3059c86
commit 0bdc74c160

View File

@ -435,12 +435,11 @@ function setup() {
if (data.AgentEmail && data.AgentEmail == (user || user.value)) {
// Incoming call
phoneNumber.value = data.CallFrom || data.From
showCallPopup.value = true
} else {
// Outgoing call
phoneNumber.value = data.To
}
showCallPopup.value = true
}
})
}