@vgroup/dialbox 0.3.59 → 0.3.60

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.
@@ -1766,18 +1766,17 @@ class CallProgressComponent {
1766
1766
  console.log('TwilioService.currentCall emitted:', incoming);
1767
1767
  console.log('Current call status:', this.call?.status());
1768
1768
  // If there is an ongoing call, show concurrent incoming banner
1769
- if (this.call && this.call.status() === 'open') {
1770
- console.log('Concurrent incoming detected - showing banner');
1771
- this.isConcurrentIncoming = true;
1772
- this.incomingCallDiv = true;
1773
- // Add to list if not present
1774
- const exists = (this.newIncomingCallsList || []).some((c) => c?.parameters?.CallSid === incoming?.parameters?.CallSid);
1775
- if (!exists) {
1776
- this.newIncomingCallsList = [...(this.newIncomingCallsList || []), incoming];
1777
- this.incomingCallsNewInfo.emit(this.newIncomingCallsList);
1778
- }
1779
- this.cdr.detectChanges();
1769
+ console.log('Concurrent incoming detected - showing banner');
1770
+ this.isConcurrentIncoming = true;
1771
+ this.incomingCallDiv = true;
1772
+ // Add to list if not present
1773
+ const exists = (this.newIncomingCallsList || []).some((c) => c?.parameters?.CallSid === incoming?.parameters?.CallSid);
1774
+ if (!exists) {
1775
+ this.newIncomingCallsList = [...(this.newIncomingCallsList || []), incoming];
1776
+ this.incomingCallsNewInfo.emit(this.newIncomingCallsList);
1780
1777
  }
1778
+ this.cdr.detectChanges();
1779
+ // }
1781
1780
  });
1782
1781
  }
1783
1782
  catch (e) {
@@ -1833,7 +1832,7 @@ class CallProgressComponent {
1833
1832
  }
1834
1833
  });
1835
1834
  }
1836
- else if (this.newIncomingCallsList.length == 0) {
1835
+ else if (!this.newIncomingCallsList.length) {
1837
1836
  this.isConcurrentIncoming = false;
1838
1837
  this.incomingCallDiv = false;
1839
1838
  this.cdr.detectChanges();
@@ -2959,6 +2958,7 @@ class DialboxComponent {
2959
2958
  else {
2960
2959
  this.callData = [];
2961
2960
  this.incomingCallsList = [];
2961
+ this.isDialpadHidden = true;
2962
2962
  }
2963
2963
  }
2964
2964
  else {