@vgroup/dialbox 0.4.153 → 0.4.155

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.
@@ -1620,6 +1620,7 @@ const INCOMING_CALL_AUDIO_BASE64 = 'SUQzBAAAAAABAFRYWFgAAAASAAADbWFqb3JfYnJhbmQA
1620
1620
 
1621
1621
  class IncomeingCallSocketService {
1622
1622
  constructor() {
1623
+ this.isCurrentIncomingCallList = [];
1623
1624
  this.eventSubject = new Subject();
1624
1625
  }
1625
1626
  connect(deviceId) {
@@ -2522,8 +2523,8 @@ class CallProgressComponent {
2522
2523
  // this.call = await this.twilioService.connect('');
2523
2524
  this.twilioService.addIncomingParticipant(data?.id, this.twilioService.conferenceCallInfo.conferenceId).subscribe((res) => {
2524
2525
  console.log(res, 'bhhhhhhhhhhhhhhhhhhh');
2526
+ this.incomeingCallSocketService.isCurrentIncomingCallList.push(data?.id || data?.participantId);
2525
2527
  this.incomeingCallSocketService.pause();
2526
- this.isCurrentIncomingCallList.push(data?.id || data?.participantId);
2527
2528
  data.isAcceptCall = true;
2528
2529
  // this.currentCall = data;
2529
2530
  this.setIncomingCallStatus(data);
@@ -2531,7 +2532,7 @@ class CallProgressComponent {
2531
2532
  }
2532
2533
  else {
2533
2534
  this.call = await this.twilioService.connect('');
2534
- this.isCurrentIncomingCallList.push(data?.id);
2535
+ this.incomeingCallSocketService.isCurrentIncomingCallList.push(data?.id);
2535
2536
  console.log(this.call, 'callConnect');
2536
2537
  data.isAcceptCall = true;
2537
2538
  // this.currentCall = data;
@@ -3227,7 +3228,7 @@ class CallProgressComponent {
3227
3228
  ipCountry: '',
3228
3229
  callStatus: 'answered',
3229
3230
  deviceId: this.deviceId,
3230
- conferenceId: this.conferenceId || 'no'
3231
+ conferenceId: this.conferenceId || data.conferenceId || 'no'
3231
3232
  };
3232
3233
  this.extensionService.setIncomingCallStatus(payload).subscribe((res) => {
3233
3234
  console.log(res);
@@ -3587,9 +3588,9 @@ class DialboxComponent {
3587
3588
  // console.log("WS Event Received:", incomingCallData);
3588
3589
  // console.log("WS Event Received:", incomingCallData.data);
3589
3590
  this.twilioService.conferenceCallInfo = incomingCallData;
3590
- if (!!incomingCallData.participants?.length) {
3591
+ if (!!incomingCallData[0]?.participants?.length) {
3591
3592
  // this.incomingCallsList = incomingCallData.participants.filter((item: any) => !item.isLeft) || [];
3592
- this.incomingCallsList = incomingCallData.participants || [];
3593
+ this.incomingCallsList = incomingCallData[0].participants || [];
3593
3594
  this.isCallInProgress = true;
3594
3595
  this.isDialpadHidden = false;
3595
3596
  this.isIncomingCallnotification = false;