@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.
@@ -2326,7 +2326,6 @@ class CallProgressComponent {
2326
2326
  }
2327
2327
  async add(data) {
2328
2328
  // if(data?.status != 'ringing'){
2329
- this.isCurrentIncomingCallList.push(data?.id);
2330
2329
  this.conferenceId = this.twilioService.conferenceCallInfo.conferenceId;
2331
2330
  if (this.currentCallList.length > 1 && this.currentCall?.isAcceptCall) {
2332
2331
  const index = this.currentCallList.findIndex((item) => item.participantId == this.currentCall?.participantId);
@@ -2343,15 +2342,18 @@ class CallProgressComponent {
2343
2342
  }
2344
2343
  let incomingCallData = this.currentCallList.filter((item) => item.isIncomingCall && item.isAcceptCall);
2345
2344
  if (incomingCallData.length > 0) {
2346
- this.twilioService.addIncomingParticipant(data?.id, this.twilioService.conferenceCallInfo.conferenceId).subscribe((data) => {
2345
+ this.call = await this.twilioService.connect('');
2346
+ await this.twilioService.addIncomingParticipant(data?.id, this.twilioService.conferenceCallInfo.conferenceId).subscribe((data) => {
2347
2347
  console.log(data, 'bhhhhhhhhhhhhhhhhhhh');
2348
2348
  });
2349
+ this.isCurrentIncomingCallList.push(data?.id);
2349
2350
  }
2350
2351
  else {
2351
2352
  this.call = await this.twilioService.connect('');
2352
2353
  console.log(this.call, 'callConnect');
2353
2354
  data.isAcceptCall = true;
2354
2355
  this.currentCall = data;
2356
+ this.isCurrentIncomingCallList.push(data?.id);
2355
2357
  }
2356
2358
  // } else if(data?.status == 'ringing'){
2357
2359
  // this.twilioService.addIncomingParticipant(data?.id, this.twilioService.conferenceCallInfo.conferenceId).subscribe((data: any) => {