@vgroup/dialbox 0.0.94 → 0.0.96
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.
|
@@ -2232,8 +2232,8 @@ class DialboxComponent {
|
|
|
2232
2232
|
this.isInitialized = false;
|
|
2233
2233
|
this.isMinimised = false;
|
|
2234
2234
|
// Initialize if dialpad is visible by default
|
|
2235
|
+
this.initializeTwilio();
|
|
2235
2236
|
if (!this.isDialpadHidden) {
|
|
2236
|
-
this.initializeTwilio();
|
|
2237
2237
|
}
|
|
2238
2238
|
}
|
|
2239
2239
|
initializeTwilio() {
|
|
@@ -2496,35 +2496,34 @@ class DialboxComponent {
|
|
|
2496
2496
|
setTimeout(() => {
|
|
2497
2497
|
this.dialInputElement.nativeElement.focus();
|
|
2498
2498
|
}, 0);
|
|
2499
|
-
if
|
|
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
|
-
|
|
2527
|
-
}
|
|
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
|
+
// } else {
|
|
2505
|
+
// this.isCallInProgress = true;
|
|
2506
|
+
// this.isDialpadHidden = false;
|
|
2507
|
+
// this.callData.phone = this.incomingCallData.parameters['From'];
|
|
2508
|
+
// console.log('411', this.incomingCallData)
|
|
2509
|
+
// this.getUserInformation(this.incomingCallData);
|
|
2510
|
+
// this.callData.name = this.incomingCallData.customParameters.get('name');
|
|
2511
|
+
// this.callData.img = this.incomingCallData.customParameters.get('image') || 'assets/images/user.jpg';
|
|
2512
|
+
// this.callData.isIncomingCall = true;
|
|
2513
|
+
// }
|
|
2514
|
+
// this.incomingCallData.on('cancel', () => {
|
|
2515
|
+
// this.incomingCallsList = this.incomingCallsList.filter((item: any) => item.parameters['CallSid'] !== this.incomingCallData.parameters['CallSid']);
|
|
2516
|
+
// if(this.incomingCallsList.length == 0){
|
|
2517
|
+
// this.isCallInProgress = false;
|
|
2518
|
+
// }
|
|
2519
|
+
// });
|
|
2520
|
+
// this.incomingCallData.on('disconnect', () => {
|
|
2521
|
+
// this.incomingCallsList = this.incomingCallsList.filter((item: any) => item.parameters['CallSid'] !== this.incomingCallData.parameters['CallSid']);
|
|
2522
|
+
// if(this.incomingCallsList.length == 0){
|
|
2523
|
+
// this.isCallInProgress = false;
|
|
2524
|
+
// }
|
|
2525
|
+
// });
|
|
2526
|
+
// }
|
|
2528
2527
|
}
|
|
2529
2528
|
// if(changes['incomingCallData'] && this.incomingCallData) {
|
|
2530
2529
|
// // this.isCallInProgress = true;
|