NTP-31180 | connected event fix

This commit is contained in:
Mayank Singh
2025-02-04 13:26:11 +05:30
parent 52ee53a5c6
commit e482003dc1
2 changed files with 4 additions and 3 deletions

View File

@@ -96,6 +96,9 @@ class CallStateManager {
data: this.state.customerInfo
});
break;
case 'connected':
this.sendConnectedMessage();
break;
case 'hungup':
this.handleCallDisconnect();
break;
@@ -130,7 +133,7 @@ class CallStateManager {
window.postMessage({
type: MessagingType.ON_CRM_NOTIFY_PUSH
})
this.state.customerInfo = {
...this.state.customerInfo,
phoneNumber: parsedQuery?.phone,

View File

@@ -37,7 +37,6 @@ import registerEventProcessor from "./eventsProcessor";
import MetricsProcessor from "@universal-call-sdk/common/lib/utils/metricsProcessor";
import ClickStreamProcessor from "@universal-call-sdk/common/lib/utils/clickStreamProcessor";
import {tagManager} from "./htmlTagManager";
import {callStateManager} from "./callStateManager.ts";
import MessagingType from "../types/MessagingType.ts";
import { checkAllPermissions } from "@universal-call-sdk/common/lib/utils/getPermissions.ts";
class AmeyoAdapter implements IAdapter {
@@ -357,7 +356,6 @@ class AmeyoAdapter implements IAdapter {
public acceptCall(): void {
acceptSipCall();
callStateManager.sendConnectedMessage();
}
public rejectCall(): void {