@vgroup/dialbox 0.4.120 → 0.4.122

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.
@@ -1784,7 +1784,7 @@ class CallProgressComponent {
1784
1784
  this.GetContactsList();
1785
1785
  }
1786
1786
  ngOnChanges(changes) {
1787
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
1787
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
1788
1788
  if (changes['callData']) {
1789
1789
  if ((_a = changes['callData'].currentValue) === null || _a === void 0 ? void 0 : _a.isIncomingCall) {
1790
1790
  this.incomingCallDiv = true;
@@ -1803,7 +1803,7 @@ class CallProgressComponent {
1803
1803
  // Check if there's an active ongoing call
1804
1804
  this.conferenceId = this.newIncomingCallsList[0].conferenceId;
1805
1805
  this.newIncomingCallsList.forEach((res) => __awaiter(this, void 0, void 0, function* () {
1806
- var _l, _m, _o, _p, _q, _r, _s, _t, _u;
1806
+ var _r, _s, _t, _u, _v, _w, _x, _y, _z;
1807
1807
  if (this.currentCallList.length > 0) {
1808
1808
  let index = this.currentCallList.findIndex((item) => item.id == res.id);
1809
1809
  if (index == -1 && !res.isLeft) {
@@ -1814,26 +1814,26 @@ class CallProgressComponent {
1814
1814
  }
1815
1815
  }
1816
1816
  else if (index != -1 && res.isLeft) {
1817
- if (((_l = this.currentCallList[index]) === null || _l === void 0 ? void 0 : _l.id) == ((_m = this.currentCall) === null || _m === void 0 ? void 0 : _m.id)) {
1817
+ if (((_r = this.currentCallList[index]) === null || _r === void 0 ? void 0 : _r.id) == ((_s = this.currentCall) === null || _s === void 0 ? void 0 : _s.id)) {
1818
1818
  this.currentCallList.splice(index, 1);
1819
1819
  this.currentCall = this.currentCallList.length > 0 ? this.currentCallList[0] : {};
1820
- if (((_o = this.currentCall) === null || _o === void 0 ? void 0 : _o.isHold) && !((_p = this.currentCall) === null || _p === void 0 ? void 0 : _p.isConference)) {
1820
+ if (((_t = this.currentCall) === null || _t === void 0 ? void 0 : _t.isHold) && !((_u = this.currentCall) === null || _u === void 0 ? void 0 : _u.isConference)) {
1821
1821
  yield this.onholdOrUnholdParticipant({
1822
- participantId: [(_q = this.currentCall) === null || _q === void 0 ? void 0 : _q.participantId],
1822
+ participantId: [(_v = this.currentCall) === null || _v === void 0 ? void 0 : _v.participantId],
1823
1823
  conferenceId: this.conferenceId,
1824
1824
  hold: false,
1825
- conference: (_r = this.currentCall) === null || _r === void 0 ? void 0 : _r.isConference
1825
+ conference: (_w = this.currentCall) === null || _w === void 0 ? void 0 : _w.isConference
1826
1826
  });
1827
1827
  // this.currentCallList[0].isHold = false;
1828
1828
  }
1829
- else if (((_s = this.currentCall) === null || _s === void 0 ? void 0 : _s.isHold) && ((_t = this.currentCall) === null || _t === void 0 ? void 0 : _t.isConference)) {
1829
+ else if (((_x = this.currentCall) === null || _x === void 0 ? void 0 : _x.isHold) && ((_y = this.currentCall) === null || _y === void 0 ? void 0 : _y.isConference)) {
1830
1830
  let conferenceCalllist = this.currentCallList.filter((item) => item.isConference);
1831
1831
  if (conferenceCalllist.length > 0) {
1832
1832
  yield this.onholdOrUnholdParticipant({
1833
1833
  participantId: conferenceCalllist.map((item) => item.participantId),
1834
1834
  conferenceId: this.conferenceId,
1835
1835
  hold: false,
1836
- conference: (_u = this.currentCall) === null || _u === void 0 ? void 0 : _u.isConference
1836
+ conference: (_z = this.currentCall) === null || _z === void 0 ? void 0 : _z.isConference
1837
1837
  });
1838
1838
  this.isConferenceCallHold = false;
1839
1839
  }
@@ -1926,9 +1926,9 @@ class CallProgressComponent {
1926
1926
  // console.log(e);
1927
1927
  // }
1928
1928
  }
1929
- if (changes['conferenceCallInfo'].currentValue) {
1929
+ if (((_l = changes['conferenceCallInfo']) === null || _l === void 0 ? void 0 : _l.currentValue) && this.conferenceCallInfo && ((_o = (_m = changes['conferenceCallInfo']) === null || _m === void 0 ? void 0 : _m.previousValue) === null || _o === void 0 ? void 0 : _o.conferenceSid) != ((_q = (_p = changes['conferenceCallInfo']) === null || _p === void 0 ? void 0 : _p.currentValue) === null || _q === void 0 ? void 0 : _q.conferenceSid)) {
1930
1930
  this.isConference = true;
1931
- this.conferenceCallInfo = changes['conferenceCallInfo'].currentValue;
1931
+ console.log(this.conferenceCallInfo);
1932
1932
  this.conferenceCallInfo.participants.forEach((item, index) => {
1933
1933
  var _a;
1934
1934
  let callInfo = {
@@ -1940,6 +1940,7 @@ class CallProgressComponent {
1940
1940
  direction: item.direction,
1941
1941
  status: ''
1942
1942
  };
1943
+ console.log(callInfo);
1943
1944
  if (index == 0) {
1944
1945
  this.startCall(callInfo);
1945
1946
  }