fix: only show call popup on status update for incoming call
This commit is contained in:
parent
fbc3059c86
commit
0bdc74c160
@ -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
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user