@vgroup/dialbox 0.6.2-9.20 → 0.6.2-9.21

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.
@@ -1805,7 +1805,7 @@ class CallProgressComponent {
1805
1805
  this.GetContactsList();
1806
1806
  }
1807
1807
  ngOnChanges(changes) {
1808
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
1808
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
1809
1809
  if (this.userId) {
1810
1810
  this.extensionService.userId = this.userId;
1811
1811
  }
@@ -1907,13 +1907,36 @@ class CallProgressComponent {
1907
1907
  this.isConference = true;
1908
1908
  }
1909
1909
  else {
1910
- this.currentCall = this.conferenceCallList.find((res) => { var _a; return (res === null || res === void 0 ? void 0 : res.participantId) == ((_a = this.currentCall) === null || _a === void 0 ? void 0 : _a.participantId) && (res === null || res === void 0 ? void 0 : res.isAcceptCall) && !(res === null || res === void 0 ? void 0 : res.isHold); });
1910
+ this.currentCall = this.currentCallList.find((res) => { var _a; return (res === null || res === void 0 ? void 0 : res.participantId) == ((_a = this.currentCall) === null || _a === void 0 ? void 0 : _a.participantId) && (res === null || res === void 0 ? void 0 : res.isAcceptCall) && !(res === null || res === void 0 ? void 0 : res.isHold); });
1911
1911
  if (!((_m = this.currentCall) === null || _m === void 0 ? void 0 : _m.participantId)) {
1912
1912
  this.currentCall = this.currentCallList[0];
1913
+ if (this.currentCallList[0].isHold && ((_o = this.currentCallList[0]) === null || _o === void 0 ? void 0 : _o.isConference)) {
1914
+ this.currentCallList.forEach((res) => {
1915
+ var _a;
1916
+ if (res.isConference && ((_a = this.currentCall) === null || _a === void 0 ? void 0 : _a.participantId)) {
1917
+ this.onholdOrUnholdParticipant({
1918
+ participantId: [res.participantId],
1919
+ conferenceId: res === null || res === void 0 ? void 0 : res.conferenceId,
1920
+ hold: true,
1921
+ mute: (res === null || res === void 0 ? void 0 : res.mute) || false,
1922
+ conference: res.isConference || false
1923
+ });
1924
+ }
1925
+ });
1926
+ }
1927
+ else {
1928
+ this.onholdOrUnholdParticipant({
1929
+ participantId: [this.currentCall.participantId],
1930
+ conferenceId: (_p = this.currentCall) === null || _p === void 0 ? void 0 : _p.conferenceId,
1931
+ hold: true,
1932
+ mute: ((_q = this.currentCall) === null || _q === void 0 ? void 0 : _q.mute) || false,
1933
+ conference: this.currentCall.isConference || false
1934
+ });
1935
+ }
1913
1936
  }
1914
1937
  }
1915
1938
  console.log(this.leftParticipent, 'leftParticipent');
1916
- if ((_o = this.selectedUserInfo) === null || _o === void 0 ? void 0 : _o.participantId) {
1939
+ if ((_r = this.selectedUserInfo) === null || _r === void 0 ? void 0 : _r.participantId) {
1917
1940
  let selectedUser = this.currentCallList.find((item) => { var _a; return item.id == ((_a = this.selectedUserInfo) === null || _a === void 0 ? void 0 : _a.participantId); });
1918
1941
  if (selectedUser) {
1919
1942
  selectedUser.IsUserInfoShow = true;
@@ -1959,7 +1982,7 @@ class CallProgressComponent {
1959
1982
  ];
1960
1983
  // })
1961
1984
  }
1962
- else if (!((_p = this.newIncomingCallsList) === null || _p === void 0 ? void 0 : _p.length)) {
1985
+ else if (!((_s = this.newIncomingCallsList) === null || _s === void 0 ? void 0 : _s.length)) {
1963
1986
  this.isRinging = false;
1964
1987
  this.isConcurrentIncoming = false;
1965
1988
  this.incomingCallDiv = false;