@vgroup/dialbox 0.0.74 → 0.0.75

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.
@@ -2197,8 +2197,8 @@ class DialboxComponent {
2197
2197
  this.isInitialized = false;
2198
2198
  this.isMinimised = false;
2199
2199
  // Initialize if dialpad is visible by default
2200
- this.initializeTwilio();
2201
2200
  if (!this.isDialpadHidden) {
2201
+ this.initializeTwilio();
2202
2202
  }
2203
2203
  }
2204
2204
  initializeTwilio() {
@@ -2209,7 +2209,7 @@ class DialboxComponent {
2209
2209
  console.error('No authentication token found');
2210
2210
  return;
2211
2211
  }
2212
- this.isInitialized = true;
2212
+ // this.isInitialized = true;
2213
2213
  // Initialize Twilio service
2214
2214
  this.twilioService.initializeTwilioDevice();
2215
2215
  // Subscribe to incoming calls to show dialpad when call comes in
@@ -2222,6 +2222,9 @@ class DialboxComponent {
2222
2222
  });
2223
2223
  this.subscriptions.add(callSub);
2224
2224
  }
2225
+ ngOnChange() {
2226
+ this.initializeTwilio();
2227
+ }
2225
2228
  ngOnInit() {
2226
2229
  try {
2227
2230
  this.getContactList();