@vgroup/dialbox 0.1.17 → 0.1.18
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.
|
@@ -2250,9 +2250,9 @@ class DialboxComponent {
|
|
|
2250
2250
|
this.isInitialized = false;
|
|
2251
2251
|
this.isMinimised = false;
|
|
2252
2252
|
// Initialize if dialpad is visible by default
|
|
2253
|
-
this.initializeTwilio();
|
|
2254
2253
|
if (!this.isDialpadHidden) {
|
|
2255
2254
|
console.log('sfsdfdsf');
|
|
2255
|
+
this.initializeTwilio();
|
|
2256
2256
|
}
|
|
2257
2257
|
}
|
|
2258
2258
|
initializeTwilio() {
|
|
@@ -2264,7 +2264,6 @@ class DialboxComponent {
|
|
|
2264
2264
|
}
|
|
2265
2265
|
this.isInitialized = true;
|
|
2266
2266
|
// Initialize Twilio service
|
|
2267
|
-
console.log('Initializing Twilio service');
|
|
2268
2267
|
this.twilioService.initializeTwilioDevice();
|
|
2269
2268
|
// Subscribe to incoming calls to show dialpad when call comes in
|
|
2270
2269
|
const callSub = this.twilioService.currentCall.subscribe(call => {
|
|
@@ -2276,9 +2275,6 @@ class DialboxComponent {
|
|
|
2276
2275
|
});
|
|
2277
2276
|
this.subscriptions.add(callSub);
|
|
2278
2277
|
}
|
|
2279
|
-
setTimeout(() => {
|
|
2280
|
-
this.isInitialized = false;
|
|
2281
|
-
}, 1000);
|
|
2282
2278
|
}
|
|
2283
2279
|
// ngOnChange() {
|
|
2284
2280
|
// this.initializeTwilio();
|
|
@@ -2382,8 +2378,8 @@ class DialboxComponent {
|
|
|
2382
2378
|
// }
|
|
2383
2379
|
// }
|
|
2384
2380
|
ngOnInit() {
|
|
2381
|
+
console.log('ngOnInit');
|
|
2385
2382
|
try {
|
|
2386
|
-
console.log('ngOnInit');
|
|
2387
2383
|
this.token = localStorage.getItem('ext_token') || '';
|
|
2388
2384
|
//this.isCallInProgress = true;
|
|
2389
2385
|
this.getContactList();
|
|
@@ -2500,7 +2496,7 @@ class DialboxComponent {
|
|
|
2500
2496
|
if (!alreadyExists) {
|
|
2501
2497
|
this.incomingCallsList.push(incomingCallData);
|
|
2502
2498
|
}
|
|
2503
|
-
this.cdk.
|
|
2499
|
+
this.cdk.detectChanges();
|
|
2504
2500
|
}, error => {
|
|
2505
2501
|
console.error('Error starting recording', error);
|
|
2506
2502
|
});
|