@vgroup/dialbox 0.4.124 → 0.4.126

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,24 +1978,26 @@ 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) => {
1982
- let callInfo = {
1983
- from: this.selectedCallerId?.number,
1984
- phone: item.direction == "outgoing-call" ? item.to : item.from,
1985
- img: '',
1986
- name: item.direction == "outgoing-call" ? (item.toName || item.to) : (item.fromName || item.from),
1987
- to: item.direction == "outgoing-call" ? item.to : item.from,
1988
- direction: item.direction,
1989
- status: ''
1990
- };
1991
- console.log(callInfo, 'callInfo33333333333');
1992
- this.currentCallList.push(callInfo);
1993
- if (index == 0) {
1994
- this.startCall(callInfo);
1995
- }
1996
- else {
1997
- this.callContact(callInfo);
1998
- }
1981
+ this.conferenceCallInfo.participants.forEach(async (item, index) => {
1982
+ setTimeout(async () => {
1983
+ let callInfo = {
1984
+ from: this.selectedCallerId?.number,
1985
+ phone: item.direction == "outgoing-call" ? item.to : item.from,
1986
+ img: '',
1987
+ name: item.direction == "outgoing-call" ? (item.toName || item.to) : (item.fromName || item.from),
1988
+ to: item.direction == "outgoing-call" ? item.to : item.from,
1989
+ direction: item.direction,
1990
+ status: ''
1991
+ };
1992
+ console.log(callInfo, 'callInfo33333333333');
1993
+ this.currentCallList.push(callInfo);
1994
+ if (index == 0) {
1995
+ await this.startCall(callInfo);
1996
+ }
1997
+ else {
1998
+ await this.callContact(callInfo);
1999
+ }
2000
+ }, index * 1000);
1999
2001
  });
2000
2002
  }
2001
2003
  }
@@ -2118,16 +2120,6 @@ class CallProgressComponent {
2118
2120
  participantNumber: callData?.phone,
2119
2121
  conferenceId: this.conferenceId
2120
2122
  });
2121
- // this.callData = { ...callData, participantId: this.addRes?.participantId, isHold: false, isLeft: false, isIncomingCall: false, isConference: false, isAcceptCall: true };
2122
- // this.call['callInfo'] = JSON.parse(JSON.stringify(this.callData));
2123
- console.log('test111111');
2124
- // this.currentCall = {...this.callData, img: callData.img ||'assets/images/user.jpg'};
2125
- // Initialize isAcceptCall based on current call state to ensure UI renders if already connected
2126
- // this.currentCallList.push({
2127
- // ...this.callData,
2128
- // img: callData.img || 'assets/images/user.jpg',
2129
- // isAcceptCall: true
2130
- // });
2131
2123
  console.log('Initial participantId:', this.addRes?.participantId);
2132
2124
  }
2133
2125
  catch (e) {
@@ -2141,12 +2133,14 @@ class CallProgressComponent {
2141
2133
  console.log('test2');
2142
2134
  this.endCall();
2143
2135
  }
2136
+ return true;
2144
2137
  }
2145
2138
  catch (error) {
2146
2139
  this.showRingAnimation = false;
2147
2140
  this.handleError(error);
2148
2141
  console.log('test3');
2149
2142
  this.endCall();
2143
+ return false;
2150
2144
  }
2151
2145
  }
2152
2146
  onHoldCall(c) {
@@ -2581,6 +2575,7 @@ class CallProgressComponent {
2581
2575
  // this.currentCallList.push({...this.callData});
2582
2576
  console.log("Participant added to conference:", phoneNumber);
2583
2577
  this.showRingAnimation = false;
2578
+ return true;
2584
2579
  }
2585
2580
  else {
2586
2581
  this.currentCallList.forEach(async (c) => {