@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.
@@ -1769,18 +1769,17 @@ class CallProgressComponent {
1769
1769
  console.log('TwilioService.currentCall emitted:', incoming);
1770
1770
  console.log('Current call status:', (_a = this.call) === null || _a === void 0 ? void 0 : _a.status());
1771
1771
  // If there is an ongoing call, show concurrent incoming banner
1772
- if (this.call && this.call.status() === 'open') {
1773
- console.log('Concurrent incoming detected - showing banner');
1774
- this.isConcurrentIncoming = true;
1775
- this.incomingCallDiv = true;
1776
- // Add to list if not present
1777
- const exists = (this.newIncomingCallsList || []).some((c) => { var _a, _b; return ((_a = c === null || c === void 0 ? void 0 : c.parameters) === null || _a === void 0 ? void 0 : _a.CallSid) === ((_b = incoming === null || incoming === void 0 ? void 0 : incoming.parameters) === null || _b === void 0 ? void 0 : _b.CallSid); });
1778
- if (!exists) {
1779
- this.newIncomingCallsList = [...(this.newIncomingCallsList || []), incoming];
1780
- this.incomingCallsNewInfo.emit(this.newIncomingCallsList);
1781
- }
1782
- this.cdr.detectChanges();
1772
+ console.log('Concurrent incoming detected - showing banner');
1773
+ this.isConcurrentIncoming = true;
1774
+ this.incomingCallDiv = true;
1775
+ // Add to list if not present
1776
+ const exists = (this.newIncomingCallsList || []).some((c) => { var _a, _b; return ((_a = c === null || c === void 0 ? void 0 : c.parameters) === null || _a === void 0 ? void 0 : _a.CallSid) === ((_b = incoming === null || incoming === void 0 ? void 0 : incoming.parameters) === null || _b === void 0 ? void 0 : _b.CallSid); });
1777
+ if (!exists) {
1778
+ this.newIncomingCallsList = [...(this.newIncomingCallsList || []), incoming];
1779
+ this.incomingCallsNewInfo.emit(this.newIncomingCallsList);
1783
1780
  }
1781
+ this.cdr.detectChanges();
1782
+ // }
1784
1783
  });
1785
1784
  }
1786
1785
  catch (e) {
@@ -1837,7 +1836,7 @@ class CallProgressComponent {
1837
1836
  }
1838
1837
  });
1839
1838
  }
1840
- else if (this.newIncomingCallsList.length == 0) {
1839
+ else if (!this.newIncomingCallsList.length) {
1841
1840
  this.isConcurrentIncoming = false;
1842
1841
  this.incomingCallDiv = false;
1843
1842
  this.cdr.detectChanges();
@@ -2966,6 +2965,7 @@ class DialboxComponent {
2966
2965
  else {
2967
2966
  this.callData = [];
2968
2967
  this.incomingCallsList = [];
2968
+ this.isDialpadHidden = true;
2969
2969
  }
2970
2970
  }
2971
2971
  else {