@vgroup/dialbox 0.1.10 → 0.1.12
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.
|
@@ -2249,10 +2249,10 @@ class DialboxComponent {
|
|
|
2249
2249
|
this.isInitialized = false;
|
|
2250
2250
|
this.isMinimised = false;
|
|
2251
2251
|
// Initialize if dialpad is visible by default
|
|
2252
|
-
if (!this.isDialpadHidden) {
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
}
|
|
2252
|
+
// if (!this.isDialpadHidden) {
|
|
2253
|
+
// console.log('sfsdfdsf')
|
|
2254
|
+
// this.initializeTwilio();
|
|
2255
|
+
// }
|
|
2256
2256
|
}
|
|
2257
2257
|
initializeTwilio() {
|
|
2258
2258
|
if (!this.isInitialized) {
|
|
@@ -2379,6 +2379,10 @@ class DialboxComponent {
|
|
|
2379
2379
|
ngOnInit() {
|
|
2380
2380
|
try {
|
|
2381
2381
|
this.token = localStorage.getItem('ext_token') || '';
|
|
2382
|
+
if (!this.isDialpadHidden) {
|
|
2383
|
+
console.log('sfsdfdsf');
|
|
2384
|
+
this.initializeTwilio();
|
|
2385
|
+
}
|
|
2382
2386
|
//this.isCallInProgress = true;
|
|
2383
2387
|
this.getContactList();
|
|
2384
2388
|
this.getUserCallSetting();
|
|
@@ -2464,7 +2468,7 @@ class DialboxComponent {
|
|
|
2464
2468
|
this.callData.isIncomingCall = true;
|
|
2465
2469
|
}
|
|
2466
2470
|
incomingCallData.on('cancel', () => {
|
|
2467
|
-
|
|
2471
|
+
this.incomingCallsList = this.incomingCallsList.filter((item) => item.parameters['CallSid'] !== incomingCallData.parameters['CallSid']);
|
|
2468
2472
|
if (this.incomingCallsList.length == 0) {
|
|
2469
2473
|
this.isCallInProgress = false;
|
|
2470
2474
|
}
|
|
@@ -2532,12 +2536,16 @@ class DialboxComponent {
|
|
|
2532
2536
|
this.callData.isIncomingCall = true;
|
|
2533
2537
|
}
|
|
2534
2538
|
this.incomingCallData.on('cancel', () => {
|
|
2535
|
-
|
|
2536
|
-
this.
|
|
2539
|
+
this.incomingCallsList = this.incomingCallsList.filter((item) => item.parameters['CallSid'] !== this.incomingCallData.parameters['CallSid']);
|
|
2540
|
+
if (this.incomingCallsList.length == 0) {
|
|
2541
|
+
this.isCallInProgress = false;
|
|
2542
|
+
}
|
|
2537
2543
|
});
|
|
2538
2544
|
this.incomingCallData.on('disconnect', () => {
|
|
2539
|
-
|
|
2540
|
-
this.
|
|
2545
|
+
this.incomingCallsList = this.incomingCallsList.filter((item) => item.parameters['CallSid'] !== this.incomingCallData.parameters['CallSid']);
|
|
2546
|
+
if (this.incomingCallsList.length == 0) {
|
|
2547
|
+
this.isCallInProgress = false;
|
|
2548
|
+
}
|
|
2541
2549
|
});
|
|
2542
2550
|
}
|
|
2543
2551
|
}
|