@vgroup/dialbox 0.0.97 → 0.0.98
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.
|
@@ -2496,65 +2496,36 @@ class DialboxComponent {
|
|
|
2496
2496
|
setTimeout(() => {
|
|
2497
2497
|
this.dialInputElement.nativeElement.focus();
|
|
2498
2498
|
}, 0);
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
|
|
2502
|
-
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
|
|
2510
|
-
|
|
2511
|
-
|
|
2512
|
-
|
|
2513
|
-
|
|
2514
|
-
|
|
2515
|
-
|
|
2516
|
-
|
|
2517
|
-
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
|
|
2499
|
+
if (this.incomingCallData) {
|
|
2500
|
+
if (this.isCallInProgress) {
|
|
2501
|
+
this.newIncomingCalls.push(this.incomingCallData);
|
|
2502
|
+
console.log('404', this.incomingCallData);
|
|
2503
|
+
this.getUserInformation(this.incomingCallData);
|
|
2504
|
+
}
|
|
2505
|
+
else {
|
|
2506
|
+
this.isCallInProgress = true;
|
|
2507
|
+
this.isDialpadHidden = false;
|
|
2508
|
+
this.callData.phone = this.incomingCallData.parameters['From'];
|
|
2509
|
+
console.log('411', this.incomingCallData);
|
|
2510
|
+
this.getUserInformation(this.incomingCallData);
|
|
2511
|
+
this.callData.name = this.incomingCallData.customParameters.get('name');
|
|
2512
|
+
this.callData.img = this.incomingCallData.customParameters.get('image') || 'assets/images/user.jpg';
|
|
2513
|
+
this.callData.isIncomingCall = true;
|
|
2514
|
+
}
|
|
2515
|
+
this.incomingCallData.on('cancel', () => {
|
|
2516
|
+
this.incomingCallsList = this.incomingCallsList.filter((item) => item.parameters['CallSid'] !== this.incomingCallData.parameters['CallSid']);
|
|
2517
|
+
if (this.incomingCallsList.length == 0) {
|
|
2518
|
+
this.isCallInProgress = false;
|
|
2519
|
+
}
|
|
2520
|
+
});
|
|
2521
|
+
this.incomingCallData.on('disconnect', () => {
|
|
2522
|
+
this.incomingCallsList = this.incomingCallsList.filter((item) => item.parameters['CallSid'] !== this.incomingCallData.parameters['CallSid']);
|
|
2523
|
+
if (this.incomingCallsList.length == 0) {
|
|
2524
|
+
this.isCallInProgress = false;
|
|
2525
|
+
}
|
|
2526
|
+
});
|
|
2527
|
+
}
|
|
2527
2528
|
}
|
|
2528
|
-
// if(changes['incomingCallData'] && this.incomingCallData) {
|
|
2529
|
-
// // this.isCallInProgress = true;
|
|
2530
|
-
// // this.isDialpadHidden = false; // Show dialpad on incoming call
|
|
2531
|
-
// if (this.isCallInProgress) {
|
|
2532
|
-
// this.newIncomingCalls.push(this.incomingCallData);
|
|
2533
|
-
// console.log('404', this.incomingCallData)
|
|
2534
|
-
// this.getUserInformation(this.incomingCallData);
|
|
2535
|
-
// } else {
|
|
2536
|
-
// this.isCallInProgress = true;
|
|
2537
|
-
// this.isDialpadHidden = false;
|
|
2538
|
-
// this.callData.phone = this.incomingCallData.parameters['From'];
|
|
2539
|
-
// console.log('411', this.incomingCallData)
|
|
2540
|
-
// this.getUserInformation(this.incomingCallData);
|
|
2541
|
-
// this.callData.name = this.incomingCallData.customParameters.get('name');
|
|
2542
|
-
// this.callData.img = this.incomingCallData.customParameters.get('image') || 'assets/images/user.jpg';
|
|
2543
|
-
// this.callData.isIncomingCall = true;
|
|
2544
|
-
// }
|
|
2545
|
-
// this.incomingCallData.on('cancel', () => {
|
|
2546
|
-
// this.incomingCallsList = this.incomingCallsList.filter((item: any) => item.parameters['CallSid'] !== this.incomingCallData.parameters['CallSid']);
|
|
2547
|
-
// if(this.incomingCallsList.length == 0){
|
|
2548
|
-
// this.isCallInProgress = false;
|
|
2549
|
-
// }
|
|
2550
|
-
// });
|
|
2551
|
-
// this.incomingCallData.on('disconnect', () => {
|
|
2552
|
-
// this.incomingCallsList = this.incomingCallsList.filter((item: any) => item.parameters['CallSid'] !== this.incomingCallData.parameters['CallSid']);
|
|
2553
|
-
// if(this.incomingCallsList.length == 0){
|
|
2554
|
-
// this.isCallInProgress = false;
|
|
2555
|
-
// }
|
|
2556
|
-
// });
|
|
2557
|
-
// }
|
|
2558
2529
|
}
|
|
2559
2530
|
registerDragElement() {
|
|
2560
2531
|
try {
|