@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.
@@ -2234,9 +2234,9 @@ class DialboxComponent {
2234
2234
  this.isInitialized = false;
2235
2235
  this.isMinimised = false;
2236
2236
  // Initialize if dialpad is visible by default
2237
- this.initializeTwilio();
2238
2237
  if (!this.isDialpadHidden) {
2239
2238
  console.log('sfsdfdsf');
2239
+ this.initializeTwilio();
2240
2240
  }
2241
2241
  }
2242
2242
  initializeTwilio() {
@@ -2248,7 +2248,6 @@ class DialboxComponent {
2248
2248
  }
2249
2249
  this.isInitialized = true;
2250
2250
  // Initialize Twilio service
2251
- console.log('Initializing Twilio service');
2252
2251
  this.twilioService.initializeTwilioDevice();
2253
2252
  // Subscribe to incoming calls to show dialpad when call comes in
2254
2253
  const callSub = this.twilioService.currentCall.subscribe(call => {
@@ -2260,9 +2259,6 @@ class DialboxComponent {
2260
2259
  });
2261
2260
  this.subscriptions.add(callSub);
2262
2261
  }
2263
- setTimeout(() => {
2264
- this.isInitialized = false;
2265
- }, 1000);
2266
2262
  }
2267
2263
  // ngOnChange() {
2268
2264
  // this.initializeTwilio();
@@ -2366,8 +2362,8 @@ class DialboxComponent {
2366
2362
  // }
2367
2363
  // }
2368
2364
  ngOnInit() {
2365
+ console.log('ngOnInit');
2369
2366
  try {
2370
- console.log('ngOnInit');
2371
2367
  this.token = localStorage.getItem('ext_token') || '';
2372
2368
  //this.isCallInProgress = true;
2373
2369
  this.getContactList();
@@ -2484,7 +2480,7 @@ class DialboxComponent {
2484
2480
  if (!alreadyExists) {
2485
2481
  this.incomingCallsList.push(incomingCallData);
2486
2482
  }
2487
- this.cdk.markForCheck();
2483
+ this.cdk.detectChanges();
2488
2484
  }, error => {
2489
2485
  console.error('Error starting recording', error);
2490
2486
  });