@vgroup/dialbox 0.7.42 → 0.7.44

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.
@@ -3186,7 +3186,7 @@ class CallProgressComponent {
3186
3186
  if ((_a = callInfo === null || callInfo === void 0 ? void 0 : callInfo.participants) === null || _a === void 0 ? void 0 : _a.length) {
3187
3187
  ourNumberInfo = callInfo.participants.find((resData) => ((this.deviceNumberList.includes(resData === null || resData === void 0 ? void 0 : resData.from) && (resData === null || resData === void 0 ? void 0 : resData.client)) || (this.deviceNumberList.includes(resData === null || resData === void 0 ? void 0 : resData.to) && (resData === null || resData === void 0 ? void 0 : resData.direction) == 'incoming-call' && !(resData === null || resData === void 0 ? void 0 : resData.businessNumber))) && !(resData === null || resData === void 0 ? void 0 : resData.isLeft) && this.getStatus(resData));
3188
3188
  }
3189
- const capturedCall = this.twilioService.getIncomingCallById(incomingCallInfo === null || incomingCallInfo === void 0 ? void 0 : incomingCallInfo.clientSid) || this.twilioService.incomingCallDetail;
3189
+ // const capturedCall = this.twilioService.getIncomingCallById(incomingCallInfo?.clientSid);
3190
3190
  this.twilioService.acceptedCallList.forEach((call) => {
3191
3191
  call.mute(true);
3192
3192
  });
@@ -3203,12 +3203,12 @@ class CallProgressComponent {
3203
3203
  if ((res === null || res === void 0 ? void 0 : res.status) != 200) {
3204
3204
  swal("Error", ((_b = (_a = res === null || res === void 0 ? void 0 : res.message) === null || _a === void 0 ? void 0 : _a.join) === null || _b === void 0 ? void 0 : _b.call(_a, "<br/>")) || 'Internal Server Error', "error");
3205
3205
  }
3206
- this.add(incomingCallInfo, ourNumberInfo, capturedCall);
3206
+ this.add(incomingCallInfo, ourNumberInfo);
3207
3207
  });
3208
3208
  this.isConferenceCallHold = true;
3209
3209
  }
3210
3210
  else {
3211
- this.add(incomingCallInfo, ourNumberInfo, capturedCall);
3211
+ this.add(incomingCallInfo, ourNumberInfo);
3212
3212
  }
3213
3213
  });
3214
3214
  }
@@ -3220,8 +3220,9 @@ class CallProgressComponent {
3220
3220
  this.cdr.detectChanges();
3221
3221
  let intervalId = setInterval(() => {
3222
3222
  var _a, _b, _c, _d, _e, _f, _g;
3223
- const callToAccept = capturedCall || this.twilioService.getIncomingCallById(data === null || data === void 0 ? void 0 : data.clientSid) || this.twilioService.incomingCallDetail;
3223
+ const callToAccept = this.twilioService.getIncomingCallById(data === null || data === void 0 ? void 0 : data.clientSid);
3224
3224
  if ((_a = callToAccept === null || callToAccept === void 0 ? void 0 : callToAccept.parameters) === null || _a === void 0 ? void 0 : _a.CallSid) {
3225
+ console.log('callToAcceptttttttttttttttttttttttttttttttttt', callToAccept, data === null || data === void 0 ? void 0 : data.id);
3225
3226
  callToAccept.accept();
3226
3227
  const acceptedEntry = {
3227
3228
  call: callToAccept,