@vgroup/dialbox 0.0.78 → 0.0.79

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.
@@ -2226,10 +2226,8 @@ class DialboxComponent {
2226
2226
  this.isSmartDialCall = false;
2227
2227
  this.isInitialized = false;
2228
2228
  this.isMinimised = false;
2229
- // Initialize if dialpad is visible by default
2230
- if (!this.isDialpadHidden) {
2231
- this.initializeTwilio();
2232
- }
2229
+ // Always initialize Twilio when component loads to receive calls immediately
2230
+ this.initializeTwilio();
2233
2231
  }
2234
2232
  initializeTwilio() {
2235
2233
  if (this.isInitialized)
@@ -2240,6 +2238,7 @@ class DialboxComponent {
2240
2238
  return;
2241
2239
  }
2242
2240
  this.isInitialized = true;
2241
+ console.log('Initializing Twilio service...');
2243
2242
  // Initialize Twilio service
2244
2243
  this.twilioService.initializeTwilioDevice();
2245
2244
  // Check for any existing call first