@vgroup/dialbox 0.0.88 → 0.0.89
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.
|
@@ -2467,7 +2467,10 @@ class DialboxComponent {
|
|
|
2467
2467
|
let data = this.fromEntries(Array.from(incomingCallData.customParameters.entries()));
|
|
2468
2468
|
this.extensionService.getUserInformation(data['twilioAuthId']).subscribe(response => {
|
|
2469
2469
|
incomingCallData['userInfo'] = response;
|
|
2470
|
-
this.incomingCallsList.
|
|
2470
|
+
const alreadyExists = this.incomingCallsList.some((call) => call.parameters?.CallSid === incomingCallData.parameters?.CallSid);
|
|
2471
|
+
if (!alreadyExists) {
|
|
2472
|
+
this.incomingCallsList.push(incomingCallData);
|
|
2473
|
+
}
|
|
2471
2474
|
}, error => {
|
|
2472
2475
|
console.error('Error starting recording', error);
|
|
2473
2476
|
});
|