@vgroup/dialbox 0.4.178 → 0.4.180

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.
@@ -2879,24 +2879,26 @@ class CallProgressComponent {
2879
2879
  // Merge functionality - unmute both calls for conference
2880
2880
  if (this.currentCallList.length > 1) {
2881
2881
  this.currentCallList.forEach(async (c) => {
2882
- if (c?.participantId) {
2883
- // c.isHold = false;
2884
- await this.onholdOrUnholdParticipant({
2885
- participantId: [c?.participantId],
2886
- conferenceId: c.conferenceId,
2887
- hold: false,
2888
- mute: c?.mute || false,
2889
- conference: true
2890
- });
2891
- c.isConference = true;
2892
- // } else if(c?.participantId && c.isIncomingCall){
2893
- // await this.twilioService.addIncomingParticipant(c?.participantId, this.conferenceId).subscribe((data: any) => {
2894
- // console.log(data,'bhhhhhhhhhhhhhhhhhhh')
2895
- // })
2896
- // c.isHold = false;
2897
- // c.isConference = true;
2882
+ if (c.conferenceId == this.currentCall.conferenceId) {
2883
+ if (c?.participantId) {
2884
+ // c.isHold = false;
2885
+ await this.onholdOrUnholdParticipant({
2886
+ participantId: [c?.participantId],
2887
+ conferenceId: c.conferenceId,
2888
+ hold: false,
2889
+ mute: c?.mute || false,
2890
+ conference: true
2891
+ });
2892
+ c.isConference = true;
2893
+ // } else if(c?.participantId && c.isIncomingCall){
2894
+ // await this.twilioService.addIncomingParticipant(c?.participantId, this.conferenceId).subscribe((data: any) => {
2895
+ // console.log(data,'bhhhhhhhhhhhhhhhhhhh')
2896
+ // })
2897
+ // c.isHold = false;
2898
+ // c.isConference = true;
2899
+ }
2900
+ this.isConferenceCallHold = false;
2898
2901
  }
2899
- this.isConferenceCallHold = false;
2900
2902
  });
2901
2903
  // await this.onholdOrUnholdParticipant({
2902
2904
  // participantId: this.heldCall?.callInfo?.participantId,