@vgroup/dialbox 0.2.71 → 0.2.73

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.
@@ -2376,6 +2376,18 @@ class CallProgressComponent {
2376
2376
  // Close contacts panel and show ring animation
2377
2377
  this.showContactsPanel = false;
2378
2378
  this.showRingAnimation = true;
2379
+ // Update UI to reflect the new outbound leg being dialed
2380
+ const contactName = [contact?.firstName, contact?.middleName, contact?.lastName]
2381
+ .filter(Boolean)
2382
+ .join(' ');
2383
+ this.callData = {
2384
+ ...this.callData,
2385
+ phone: phoneNumber,
2386
+ displayNum: phoneNumber,
2387
+ name: contactName || phoneNumber,
2388
+ img: contact?.img || 'assets/images/user.jpg'
2389
+ };
2390
+ this.cdr.detectChanges();
2379
2391
  // Get the conference ID from the current call or use the stored one
2380
2392
  const conferenceId = this.conferenceId;
2381
2393
  if (!conferenceId) {
@@ -2482,9 +2494,9 @@ class CallProgressComponent {
2482
2494
  this.callData = {
2483
2495
  ...this.callData,
2484
2496
  phone: fromNumber,
2485
- displayNum: fromNumber,
2486
- name: callerName,
2487
- img: callerImg
2497
+ displayNum: (displayNumber && displayNumber !== '-') ? displayNumber : fromNumber,
2498
+ name: (callerName && callerName !== '-') ? callerName : (this.callData?.name || fromNumber),
2499
+ img: callerImg || this.callData?.img || 'assets/images/user.jpg'
2488
2500
  };
2489
2501
  console.log('After swap - Active call:', this.call.parameters['From']);
2490
2502
  console.log('After swap - Held call:', this.heldCall.parameters['From']);