@vgroup/dialbox 0.4.123 → 0.4.125

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.
@@ -1978,7 +1978,7 @@ class CallProgressComponent {
1978
1978
  if (changes['conferenceCallInfo']?.currentValue && this.conferenceCallInfo && changes['conferenceCallInfo']?.previousValue?.conferenceSid != changes['conferenceCallInfo']?.currentValue?.conferenceSid) {
1979
1979
  this.isConference = true;
1980
1980
  console.log(this.conferenceCallInfo, '222222222222222');
1981
- this.conferenceCallInfo.participants.forEach((item, index) => {
1981
+ this.conferenceCallInfo.participants.forEach(async (item, index) => {
1982
1982
  let callInfo = {
1983
1983
  from: this.selectedCallerId?.number,
1984
1984
  phone: item.direction == "outgoing-call" ? item.to : item.from,
@@ -1989,11 +1989,12 @@ class CallProgressComponent {
1989
1989
  status: ''
1990
1990
  };
1991
1991
  console.log(callInfo, 'callInfo33333333333');
1992
+ this.currentCallList.push(callInfo);
1992
1993
  if (index == 0) {
1993
- this.startCall(callInfo);
1994
+ await this.startCall(callInfo);
1994
1995
  }
1995
1996
  else {
1996
- this.callContact(callInfo);
1997
+ await this.callContact(callInfo);
1997
1998
  }
1998
1999
  });
1999
2000
  }
@@ -2117,16 +2118,6 @@ class CallProgressComponent {
2117
2118
  participantNumber: callData?.phone,
2118
2119
  conferenceId: this.conferenceId
2119
2120
  });
2120
- // this.callData = { ...callData, participantId: this.addRes?.participantId, isHold: false, isLeft: false, isIncomingCall: false, isConference: false, isAcceptCall: true };
2121
- // this.call['callInfo'] = JSON.parse(JSON.stringify(this.callData));
2122
- console.log('test111111');
2123
- // this.currentCall = {...this.callData, img: callData.img ||'assets/images/user.jpg'};
2124
- // Initialize isAcceptCall based on current call state to ensure UI renders if already connected
2125
- // this.currentCallList.push({
2126
- // ...this.callData,
2127
- // img: callData.img || 'assets/images/user.jpg',
2128
- // isAcceptCall: true
2129
- // });
2130
2121
  console.log('Initial participantId:', this.addRes?.participantId);
2131
2122
  }
2132
2123
  catch (e) {
@@ -2140,12 +2131,14 @@ class CallProgressComponent {
2140
2131
  console.log('test2');
2141
2132
  this.endCall();
2142
2133
  }
2134
+ return true;
2143
2135
  }
2144
2136
  catch (error) {
2145
2137
  this.showRingAnimation = false;
2146
2138
  this.handleError(error);
2147
2139
  console.log('test3');
2148
2140
  this.endCall();
2141
+ return false;
2149
2142
  }
2150
2143
  }
2151
2144
  onHoldCall(c) {
@@ -2580,6 +2573,7 @@ class CallProgressComponent {
2580
2573
  // this.currentCallList.push({...this.callData});
2581
2574
  console.log("Participant added to conference:", phoneNumber);
2582
2575
  this.showRingAnimation = false;
2576
+ return true;
2583
2577
  }
2584
2578
  else {
2585
2579
  this.currentCallList.forEach(async (c) => {
@@ -3360,7 +3354,7 @@ class DialboxComponent {
3360
3354
  "toName": "Test ",
3361
3355
  "fromName": "Test ",
3362
3356
  "from": "+12252519886",
3363
- "to": "+919712525318",
3357
+ "to": "+916354564733",
3364
3358
  "status": "completed",
3365
3359
  "direction": "outgoing-call"
3366
3360
  },