@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.
@@ -1956,9 +1956,31 @@ class CallProgressComponent {
1956
1956
  this.isConference = true;
1957
1957
  }
1958
1958
  else {
1959
- this.currentCall = this.conferenceCallList.find((res) => res?.participantId == this.currentCall?.participantId && res?.isAcceptCall && !res?.isHold);
1959
+ this.currentCall = this.currentCallList.find((res) => res?.participantId == this.currentCall?.participantId && res?.isAcceptCall && !res?.isHold);
1960
1960
  if (!this.currentCall?.participantId) {
1961
1961
  this.currentCall = this.currentCallList[0];
1962
+ if (this.currentCallList[0].isHold && this.currentCallList[0]?.isConference) {
1963
+ this.currentCallList.forEach((res) => {
1964
+ if (res.isConference && this.currentCall?.participantId) {
1965
+ this.onholdOrUnholdParticipant({
1966
+ participantId: [res.participantId],
1967
+ conferenceId: res?.conferenceId,
1968
+ hold: true,
1969
+ mute: res?.mute || false,
1970
+ conference: res.isConference || false
1971
+ });
1972
+ }
1973
+ });
1974
+ }
1975
+ else {
1976
+ this.onholdOrUnholdParticipant({
1977
+ participantId: [this.currentCall.participantId],
1978
+ conferenceId: this.currentCall?.conferenceId,
1979
+ hold: true,
1980
+ mute: this.currentCall?.mute || false,
1981
+ conference: this.currentCall.isConference || false
1982
+ });
1983
+ }
1962
1984
  }
1963
1985
  }
1964
1986
  console.log(this.leftParticipent, 'leftParticipent');