@vgroup/dialbox 0.1.15 → 0.1.16

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,11 +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
- // console.log('sfsdfdsf')
2254
- // this.initializeTwilio();
2255
- // }
2256
- this.twilioService.initializeTwilioDevice();
2252
+ this.initializeTwilio();
2253
+ if (!this.isDialpadHidden) {
2254
+ console.log('sfsdfdsf');
2255
+ }
2257
2256
  }
2258
2257
  initializeTwilio() {
2259
2258
  if (!this.isInitialized) {
@@ -2275,6 +2274,9 @@ class DialboxComponent {
2275
2274
  });
2276
2275
  this.subscriptions.add(callSub);
2277
2276
  }
2277
+ setTimeout(() => {
2278
+ this.isInitialized = false;
2279
+ }, 1000);
2278
2280
  }
2279
2281
  // ngOnChange() {
2280
2282
  // this.initializeTwilio();
@@ -2378,6 +2380,7 @@ class DialboxComponent {
2378
2380
  // }
2379
2381
  // }
2380
2382
  ngOnInit() {
2383
+ console.log('ngOnInit');
2381
2384
  try {
2382
2385
  this.token = localStorage.getItem('ext_token') || '';
2383
2386
  //this.isCallInProgress = true;