NTP-31180 | connected event fix
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user