@vgroup/dialbox 0.0.96 → 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.
|
@@ -2248,8 +2248,8 @@ class DialboxComponent {
|
|
|
2248
2248
|
this.isInitialized = false;
|
|
2249
2249
|
this.isMinimised = false;
|
|
2250
2250
|
// Initialize if dialpad is visible by default
|
|
2251
|
-
this.initializeTwilio();
|
|
2252
2251
|
if (!this.isDialpadHidden) {
|
|
2252
|
+
this.initializeTwilio();
|
|
2253
2253
|
}
|
|
2254
2254
|
}
|
|
2255
2255
|
initializeTwilio() {
|
|
@@ -2512,65 +2512,36 @@ class DialboxComponent {
|
|
|
2512
2512
|
setTimeout(() => {
|
|
2513
2513
|
this.dialInputElement.nativeElement.focus();
|
|
2514
2514
|
}, 0);
|
|
2515
|
-
|
|
2516
|
-
|
|
2517
|
-
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
|
|
2529
|
-
|
|
2530
|
-
|
|
2531
|
-
|
|
2532
|
-
|
|
2533
|
-
|
|
2534
|
-
|
|
2535
|
-
|
|
2536
|
-
|
|
2537
|
-
|
|
2538
|
-
|
|
2539
|
-
|
|
2540
|
-
|
|
2541
|
-
|
|
2542
|
-
|
|
2515
|
+
if (this.incomingCallData) {
|
|
2516
|
+
if (this.isCallInProgress) {
|
|
2517
|
+
this.newIncomingCalls.push(this.incomingCallData);
|
|
2518
|
+
console.log('404', this.incomingCallData);
|
|
2519
|
+
this.getUserInformation(this.incomingCallData);
|
|
2520
|
+
}
|
|
2521
|
+
else {
|
|
2522
|
+
this.isCallInProgress = true;
|
|
2523
|
+
this.isDialpadHidden = false;
|
|
2524
|
+
this.callData.phone = this.incomingCallData.parameters['From'];
|
|
2525
|
+
console.log('411', this.incomingCallData);
|
|
2526
|
+
this.getUserInformation(this.incomingCallData);
|
|
2527
|
+
this.callData.name = this.incomingCallData.customParameters.get('name');
|
|
2528
|
+
this.callData.img = this.incomingCallData.customParameters.get('image') || 'assets/images/user.jpg';
|
|
2529
|
+
this.callData.isIncomingCall = true;
|
|
2530
|
+
}
|
|
2531
|
+
this.incomingCallData.on('cancel', () => {
|
|
2532
|
+
this.incomingCallsList = this.incomingCallsList.filter((item) => item.parameters['CallSid'] !== this.incomingCallData.parameters['CallSid']);
|
|
2533
|
+
if (this.incomingCallsList.length == 0) {
|
|
2534
|
+
this.isCallInProgress = false;
|
|
2535
|
+
}
|
|
2536
|
+
});
|
|
2537
|
+
this.incomingCallData.on('disconnect', () => {
|
|
2538
|
+
this.incomingCallsList = this.incomingCallsList.filter((item) => item.parameters['CallSid'] !== this.incomingCallData.parameters['CallSid']);
|
|
2539
|
+
if (this.incomingCallsList.length == 0) {
|
|
2540
|
+
this.isCallInProgress = false;
|
|
2541
|
+
}
|
|
2542
|
+
});
|
|
2543
|
+
}
|
|
2543
2544
|
}
|
|
2544
|
-
// if(changes['incomingCallData'] && this.incomingCallData) {
|
|
2545
|
-
// // this.isCallInProgress = true;
|
|
2546
|
-
// // this.isDialpadHidden = false; // Show dialpad on incoming call
|
|
2547
|
-
// if (this.isCallInProgress) {
|
|
2548
|
-
// this.newIncomingCalls.push(this.incomingCallData);
|
|
2549
|
-
// console.log('404', this.incomingCallData)
|
|
2550
|
-
// this.getUserInformation(this.incomingCallData);
|
|
2551
|
-
// } else {
|
|
2552
|
-
// this.isCallInProgress = true;
|
|
2553
|
-
// this.isDialpadHidden = false;
|
|
2554
|
-
// this.callData.phone = this.incomingCallData.parameters['From'];
|
|
2555
|
-
// console.log('411', this.incomingCallData)
|
|
2556
|
-
// this.getUserInformation(this.incomingCallData);
|
|
2557
|
-
// this.callData.name = this.incomingCallData.customParameters.get('name');
|
|
2558
|
-
// this.callData.img = this.incomingCallData.customParameters.get('image') || 'assets/images/user.jpg';
|
|
2559
|
-
// this.callData.isIncomingCall = true;
|
|
2560
|
-
// }
|
|
2561
|
-
// this.incomingCallData.on('cancel', () => {
|
|
2562
|
-
// this.incomingCallsList = this.incomingCallsList.filter((item: any) => item.parameters['CallSid'] !== this.incomingCallData.parameters['CallSid']);
|
|
2563
|
-
// if(this.incomingCallsList.length == 0){
|
|
2564
|
-
// this.isCallInProgress = false;
|
|
2565
|
-
// }
|
|
2566
|
-
// });
|
|
2567
|
-
// this.incomingCallData.on('disconnect', () => {
|
|
2568
|
-
// this.incomingCallsList = this.incomingCallsList.filter((item: any) => item.parameters['CallSid'] !== this.incomingCallData.parameters['CallSid']);
|
|
2569
|
-
// if(this.incomingCallsList.length == 0){
|
|
2570
|
-
// this.isCallInProgress = false;
|
|
2571
|
-
// }
|
|
2572
|
-
// });
|
|
2573
|
-
// }
|
|
2574
2545
|
}
|
|
2575
2546
|
registerDragElement() {
|
|
2576
2547
|
try {
|