@vgroup/dialbox 0.1.29 → 0.1.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2478,7 +2478,7 @@ class DialboxComponent {
|
|
|
2478
2478
|
console.log('366---', data);
|
|
2479
2479
|
this.extensionService.getUserInformation(data['twilioAuthId']).subscribe(response => {
|
|
2480
2480
|
incomingCallData['userInfo'] = response;
|
|
2481
|
-
const alreadyExists = this.incomingCallsList.some((call) => call.parameters?.
|
|
2481
|
+
const alreadyExists = this.incomingCallsList.some((call) => call.parameters?.CallSid === incomingCallData.parameters?.CallSid);
|
|
2482
2482
|
if (!alreadyExists) {
|
|
2483
2483
|
this.incomingCallsList.push(incomingCallData);
|
|
2484
2484
|
}
|
|
@@ -2524,9 +2524,11 @@ class DialboxComponent {
|
|
|
2524
2524
|
if (this.incomingCallsList.length == 0) {
|
|
2525
2525
|
this.isCallInProgress = false;
|
|
2526
2526
|
}
|
|
2527
|
+
this.incomingCallData.disconnect();
|
|
2527
2528
|
});
|
|
2528
2529
|
this.incomingCallData.on('disconnect', () => {
|
|
2529
2530
|
this.incomingCallsList = this.incomingCallsList.filter((item) => item.parameters['CallSid'] !== this.incomingCallData.parameters['CallSid']);
|
|
2531
|
+
this.incomingCallData.disconnect();
|
|
2530
2532
|
if (this.incomingCallsList.length == 0) {
|
|
2531
2533
|
this.isCallInProgress = false;
|
|
2532
2534
|
}
|