NTP-21033 | hotfix

This commit is contained in:
varnit goyal
2025-01-06 11:13:54 +05:30
parent 711dc6910f
commit 45af501578

View File

@@ -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,