@vgroup/dialbox 0.3.98 → 0.3.99

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.
@@ -2287,7 +2287,6 @@ class CallProgressComponent {
2287
2287
  var _a, _b, _c, _d, _e;
2288
2288
  return __awaiter(this, void 0, void 0, function* () {
2289
2289
  // if(data?.status != 'ringing'){
2290
- this.isCurrentIncomingCallList.push(data === null || data === void 0 ? void 0 : data.id);
2291
2290
  this.conferenceId = this.twilioService.conferenceCallInfo.conferenceId;
2292
2291
  if (this.currentCallList.length > 1 && ((_a = this.currentCall) === null || _a === void 0 ? void 0 : _a.isAcceptCall)) {
2293
2292
  const index = this.currentCallList.findIndex((item) => { var _a; return item.participantId == ((_a = this.currentCall) === null || _a === void 0 ? void 0 : _a.participantId); });
@@ -2304,15 +2303,18 @@ class CallProgressComponent {
2304
2303
  }
2305
2304
  let incomingCallData = this.currentCallList.filter((item) => item.isIncomingCall && item.isAcceptCall);
2306
2305
  if (incomingCallData.length > 0) {
2307
- this.twilioService.addIncomingParticipant(data === null || data === void 0 ? void 0 : data.id, this.twilioService.conferenceCallInfo.conferenceId).subscribe((data) => {
2306
+ this.call = yield this.twilioService.connect('');
2307
+ yield this.twilioService.addIncomingParticipant(data === null || data === void 0 ? void 0 : data.id, this.twilioService.conferenceCallInfo.conferenceId).subscribe((data) => {
2308
2308
  console.log(data, 'bhhhhhhhhhhhhhhhhhhh');
2309
2309
  });
2310
+ this.isCurrentIncomingCallList.push(data === null || data === void 0 ? void 0 : data.id);
2310
2311
  }
2311
2312
  else {
2312
2313
  this.call = yield this.twilioService.connect('');
2313
2314
  console.log(this.call, 'callConnect');
2314
2315
  data.isAcceptCall = true;
2315
2316
  this.currentCall = data;
2317
+ this.isCurrentIncomingCallList.push(data === null || data === void 0 ? void 0 : data.id);
2316
2318
  }
2317
2319
  });
2318
2320
  }