@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
|
@@ -1929,10 +1929,10 @@ class CallProgressComponent {
|
|
|
1929
1929
|
if (((_l = changes['conferenceCallInfo']) === null || _l === void 0 ? void 0 : _l.currentValue) && this.conferenceCallInfo && ((_o = (_m = changes['conferenceCallInfo']) === null || _m === void 0 ? void 0 : _m.previousValue) === null || _o === void 0 ? void 0 : _o.conferenceSid) != ((_q = (_p = changes['conferenceCallInfo']) === null || _p === void 0 ? void 0 : _p.currentValue) === null || _q === void 0 ? void 0 : _q.conferenceSid)) {
|
|
1930
1930
|
this.isConference = true;
|
|
1931
1931
|
console.log(this.conferenceCallInfo, '222222222222222');
|
|
1932
|
-
this.conferenceCallInfo.participants.forEach((item, index) => {
|
|
1933
|
-
var
|
|
1932
|
+
this.conferenceCallInfo.participants.forEach((item, index) => __awaiter(this, void 0, void 0, function* () {
|
|
1933
|
+
var _0;
|
|
1934
1934
|
let callInfo = {
|
|
1935
|
-
from: (
|
|
1935
|
+
from: (_0 = this.selectedCallerId) === null || _0 === void 0 ? void 0 : _0.number,
|
|
1936
1936
|
phone: item.direction == "outgoing-call" ? item.to : item.from,
|
|
1937
1937
|
img: '',
|
|
1938
1938
|
name: item.direction == "outgoing-call" ? (item.toName || item.to) : (item.fromName || item.from),
|
|
@@ -1943,12 +1943,12 @@ class CallProgressComponent {
|
|
|
1943
1943
|
console.log(callInfo, 'callInfo33333333333');
|
|
1944
1944
|
this.currentCallList.push(callInfo);
|
|
1945
1945
|
if (index == 0) {
|
|
1946
|
-
this.startCall(callInfo);
|
|
1946
|
+
yield this.startCall(callInfo);
|
|
1947
1947
|
}
|
|
1948
1948
|
else {
|
|
1949
|
-
this.callContact(callInfo);
|
|
1949
|
+
yield this.callContact(callInfo);
|
|
1950
1950
|
}
|
|
1951
|
-
});
|
|
1951
|
+
}));
|
|
1952
1952
|
}
|
|
1953
1953
|
}
|
|
1954
1954
|
getStatus(res) {
|
|
@@ -2073,16 +2073,6 @@ class CallProgressComponent {
|
|
|
2073
2073
|
participantNumber: callData === null || callData === void 0 ? void 0 : callData.phone,
|
|
2074
2074
|
conferenceId: this.conferenceId
|
|
2075
2075
|
});
|
|
2076
|
-
// this.callData = { ...callData, participantId: this.addRes?.participantId, isHold: false, isLeft: false, isIncomingCall: false, isConference: false, isAcceptCall: true };
|
|
2077
|
-
// this.call['callInfo'] = JSON.parse(JSON.stringify(this.callData));
|
|
2078
|
-
console.log('test111111');
|
|
2079
|
-
// this.currentCall = {...this.callData, img: callData.img ||'assets/images/user.jpg'};
|
|
2080
|
-
// Initialize isAcceptCall based on current call state to ensure UI renders if already connected
|
|
2081
|
-
// this.currentCallList.push({
|
|
2082
|
-
// ...this.callData,
|
|
2083
|
-
// img: callData.img || 'assets/images/user.jpg',
|
|
2084
|
-
// isAcceptCall: true
|
|
2085
|
-
// });
|
|
2086
2076
|
console.log('Initial participantId:', (_b = this.addRes) === null || _b === void 0 ? void 0 : _b.participantId);
|
|
2087
2077
|
}
|
|
2088
2078
|
catch (e) {
|
|
@@ -2096,12 +2086,14 @@ class CallProgressComponent {
|
|
|
2096
2086
|
console.log('test2');
|
|
2097
2087
|
this.endCall();
|
|
2098
2088
|
}
|
|
2089
|
+
return true;
|
|
2099
2090
|
}
|
|
2100
2091
|
catch (error) {
|
|
2101
2092
|
this.showRingAnimation = false;
|
|
2102
2093
|
this.handleError(error);
|
|
2103
2094
|
console.log('test3');
|
|
2104
2095
|
this.endCall();
|
|
2096
|
+
return false;
|
|
2105
2097
|
}
|
|
2106
2098
|
});
|
|
2107
2099
|
}
|
|
@@ -2524,6 +2516,7 @@ class CallProgressComponent {
|
|
|
2524
2516
|
// this.currentCallList.push({...this.callData});
|
|
2525
2517
|
console.log("Participant added to conference:", phoneNumber);
|
|
2526
2518
|
this.showRingAnimation = false;
|
|
2519
|
+
return true;
|
|
2527
2520
|
}
|
|
2528
2521
|
else {
|
|
2529
2522
|
this.currentCallList.forEach((c) => __awaiter(this, void 0, void 0, function* () {
|