1
0
forked from test/crm

fix: show dial whom number for incoming call and to number for outgoing call

This commit is contained in:
Shariq Ansari 2025-02-03 14:16:55 +05:30
parent e8ca2987d0
commit 74d516192c

View File

@ -434,10 +434,9 @@ function setup() {
if (
!showCallPopup.value &&
!showSmallCallPopup.value &&
data.AgentEmail &&
data.AgentEmail == (user || user.value)
(!data.AgentEmail || data.AgentEmail == (user || user.value))
) {
phoneNumber.value = data.CallTo || data.To
phoneNumber.value = data.DialWhomNumber || data.To
showCallPopup.value = true
}
})