@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.
@@ -2838,24 +2838,26 @@ class CallProgressComponent {
2838
2838
  // Merge functionality - unmute both calls for conference
2839
2839
  if (this.currentCallList.length > 1) {
2840
2840
  this.currentCallList.forEach((c) => __awaiter(this, void 0, void 0, function* () {
2841
- if (c === null || c === void 0 ? void 0 : c.participantId) {
2842
- // c.isHold = false;
2843
- yield this.onholdOrUnholdParticipant({
2844
- participantId: [c === null || c === void 0 ? void 0 : c.participantId],
2845
- conferenceId: c.conferenceId,
2846
- hold: false,
2847
- mute: (c === null || c === void 0 ? void 0 : c.mute) || false,
2848
- conference: true
2849
- });
2850
- c.isConference = true;
2851
- // } else if(c?.participantId && c.isIncomingCall){
2852
- // await this.twilioService.addIncomingParticipant(c?.participantId, this.conferenceId).subscribe((data: any) => {
2853
- // console.log(data,'bhhhhhhhhhhhhhhhhhhh')
2854
- // })
2855
- // c.isHold = false;
2856
- // c.isConference = true;
2841
+ if (c.conferenceId == this.currentCall.conferenceId) {
2842
+ if (c === null || c === void 0 ? void 0 : c.participantId) {
2843
+ // c.isHold = false;
2844
+ yield this.onholdOrUnholdParticipant({
2845
+ participantId: [c === null || c === void 0 ? void 0 : c.participantId],
2846
+ conferenceId: c.conferenceId,
2847
+ hold: false,
2848
+ mute: (c === null || c === void 0 ? void 0 : c.mute) || false,
2849
+ conference: true
2850
+ });
2851
+ c.isConference = true;
2852
+ // } else if(c?.participantId && c.isIncomingCall){
2853
+ // await this.twilioService.addIncomingParticipant(c?.participantId, this.conferenceId).subscribe((data: any) => {
2854
+ // console.log(data,'bhhhhhhhhhhhhhhhhhhh')
2855
+ // })
2856
+ // c.isHold = false;
2857
+ // c.isConference = true;
2858
+ }
2859
+ this.isConferenceCallHold = false;
2857
2860
  }
2858
- this.isConferenceCallHold = false;
2859
2861
  }));
2860
2862
  // await this.onholdOrUnholdParticipant({
2861
2863
  // participantId: this.heldCall?.callInfo?.participantId,