Merge pull request #572 from frappe/develop

This commit is contained in:
Shariq Ansari 2025-02-03 19:29:43 +05:30 committed by GitHub
commit 5bfeb00123
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -431,12 +431,15 @@ function setup() {
callStatus.value = updateStatus(data)
const { user } = sessionStore()
if (
!showCallPopup.value &&
!showSmallCallPopup.value &&
(!data.AgentEmail || data.AgentEmail == (user || user.value))
) {
phoneNumber.value = data.DialWhomNumber || data.To
if (!showCallPopup.value && !showSmallCallPopup.value) {
if (data.AgentEmail && data.AgentEmail == (user || user.value)) {
// Incoming call
phoneNumber.value = data.CallFrom || data.From
} else {
// Outgoing call
phoneNumber.value = data.To
}
showCallPopup.value = true
}
})