@vgroup/dialbox 0.4.124 → 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.
- package/esm2020/lib/components/call-progress/call-progress.component.mjs +7 -14
- package/fesm2015/vgroup-dialbox.mjs +9 -16
- package/fesm2015/vgroup-dialbox.mjs.map +1 -1
- package/fesm2020/vgroup-dialbox.mjs +6 -13
- package/fesm2020/vgroup-dialbox.mjs.map +1 -1
- package/lib/components/call-progress/call-progress.component.d.ts +2 -2
- package/package.json +1 -1
|
@@ -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,
|
|
@@ -1991,10 +1991,10 @@ class CallProgressComponent {
|
|
|
1991
1991
|
console.log(callInfo, 'callInfo33333333333');
|
|
1992
1992
|
this.currentCallList.push(callInfo);
|
|
1993
1993
|
if (index == 0) {
|
|
1994
|
-
this.startCall(callInfo);
|
|
1994
|
+
await this.startCall(callInfo);
|
|
1995
1995
|
}
|
|
1996
1996
|
else {
|
|
1997
|
-
this.callContact(callInfo);
|
|
1997
|
+
await this.callContact(callInfo);
|
|
1998
1998
|
}
|
|
1999
1999
|
});
|
|
2000
2000
|
}
|
|
@@ -2118,16 +2118,6 @@ class CallProgressComponent {
|
|
|
2118
2118
|
participantNumber: callData?.phone,
|
|
2119
2119
|
conferenceId: this.conferenceId
|
|
2120
2120
|
});
|
|
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
2121
|
console.log('Initial participantId:', this.addRes?.participantId);
|
|
2132
2122
|
}
|
|
2133
2123
|
catch (e) {
|
|
@@ -2141,12 +2131,14 @@ class CallProgressComponent {
|
|
|
2141
2131
|
console.log('test2');
|
|
2142
2132
|
this.endCall();
|
|
2143
2133
|
}
|
|
2134
|
+
return true;
|
|
2144
2135
|
}
|
|
2145
2136
|
catch (error) {
|
|
2146
2137
|
this.showRingAnimation = false;
|
|
2147
2138
|
this.handleError(error);
|
|
2148
2139
|
console.log('test3');
|
|
2149
2140
|
this.endCall();
|
|
2141
|
+
return false;
|
|
2150
2142
|
}
|
|
2151
2143
|
}
|
|
2152
2144
|
onHoldCall(c) {
|
|
@@ -2581,6 +2573,7 @@ class CallProgressComponent {
|
|
|
2581
2573
|
// this.currentCallList.push({...this.callData});
|
|
2582
2574
|
console.log("Participant added to conference:", phoneNumber);
|
|
2583
2575
|
this.showRingAnimation = false;
|
|
2576
|
+
return true;
|
|
2584
2577
|
}
|
|
2585
2578
|
else {
|
|
2586
2579
|
this.currentCallList.forEach(async (c) => {
|