NTP-21033 | hotfix
This commit is contained in:
@@ -116,13 +116,14 @@ function extractUserCallModelUpdatedPush(rawResponse) {
|
||||
}
|
||||
}
|
||||
if (jsonData?.pushType === pushResponseTypes.UserCCRuntimeUpdatedPush) {
|
||||
debugger;
|
||||
const payload = jsonData?.data;
|
||||
//handle ameyo erroronous condition
|
||||
if (payload?.isOnBreak) {
|
||||
window.postMessage({
|
||||
type: MessagingType.ON_AMEYO_AGENT_ON_BREAK,
|
||||
data: {
|
||||
breakReason: 'ameyo is errorounous',
|
||||
reason: payload,
|
||||
}
|
||||
});
|
||||
}
|
||||
@@ -149,7 +150,7 @@ const sendCallStatusMessage = (res) => {
|
||||
* Since callId is essential and cannot be null,
|
||||
* this retry mechanism ensures we wait until it becomes available. */
|
||||
const data = getCustomerInfo();
|
||||
if (data?.callId) {
|
||||
if (data?.callId || data?.phoneNumber) {
|
||||
const message = {
|
||||
type: MessagingType.ON_AMEYO_CALL_ACCEPTED,
|
||||
data,
|
||||
|
||||
Reference in New Issue
Block a user