@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.
@@ -2233,11 +2233,10 @@ class DialboxComponent {
2233
2233
  this.isInitialized = false;
2234
2234
  this.isMinimised = false;
2235
2235
  // Initialize if dialpad is visible by default
2236
- // if (!this.isDialpadHidden) {
2237
- // console.log('sfsdfdsf')
2238
- // this.initializeTwilio();
2239
- // }
2240
- this.twilioService.initializeTwilioDevice();
2236
+ this.initializeTwilio();
2237
+ if (!this.isDialpadHidden) {
2238
+ console.log('sfsdfdsf');
2239
+ }
2241
2240
  }
2242
2241
  initializeTwilio() {
2243
2242
  if (!this.isInitialized) {
@@ -2259,6 +2258,9 @@ class DialboxComponent {
2259
2258
  });
2260
2259
  this.subscriptions.add(callSub);
2261
2260
  }
2261
+ setTimeout(() => {
2262
+ this.isInitialized = false;
2263
+ }, 1000);
2262
2264
  }
2263
2265
  // ngOnChange() {
2264
2266
  // this.initializeTwilio();
@@ -2362,6 +2364,7 @@ class DialboxComponent {
2362
2364
  // }
2363
2365
  // }
2364
2366
  ngOnInit() {
2367
+ console.log('ngOnInit');
2365
2368
  try {
2366
2369
  this.token = localStorage.getItem('ext_token') || '';
2367
2370
  //this.isCallInProgress = true;