@vgroup/dialbox 0.4.135 → 0.4.136
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.
|
@@ -1787,7 +1787,7 @@ class CallProgressComponent {
|
|
|
1787
1787
|
this.GetContactsList();
|
|
1788
1788
|
}
|
|
1789
1789
|
ngOnChanges(changes) {
|
|
1790
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k
|
|
1790
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
1791
1791
|
if (changes['callData']) {
|
|
1792
1792
|
if ((_a = changes['callData'].currentValue) === null || _a === void 0 ? void 0 : _a.isIncomingCall) {
|
|
1793
1793
|
this.incomingCallDiv = true;
|
|
@@ -1806,7 +1806,7 @@ class CallProgressComponent {
|
|
|
1806
1806
|
// Check if there's an active ongoing call
|
|
1807
1807
|
this.conferenceId = this.newIncomingCallsList[0].conferenceId;
|
|
1808
1808
|
this.newIncomingCallsList.forEach((res) => __awaiter(this, void 0, void 0, function* () {
|
|
1809
|
-
var
|
|
1809
|
+
var _l, _m, _o, _p, _q, _r, _s, _t, _u;
|
|
1810
1810
|
if (this.currentCallList.length > 0) {
|
|
1811
1811
|
let index = this.currentCallList.findIndex((item) => item.id == res.id);
|
|
1812
1812
|
if (index == -1 && !res.isLeft) {
|
|
@@ -1817,26 +1817,26 @@ class CallProgressComponent {
|
|
|
1817
1817
|
}
|
|
1818
1818
|
}
|
|
1819
1819
|
else if (index != -1 && res.isLeft) {
|
|
1820
|
-
if (((
|
|
1820
|
+
if (((_l = this.currentCallList[index]) === null || _l === void 0 ? void 0 : _l.id) == ((_m = this.currentCall) === null || _m === void 0 ? void 0 : _m.id)) {
|
|
1821
1821
|
this.currentCallList.splice(index, 1);
|
|
1822
1822
|
this.currentCall = this.currentCallList.length > 0 ? this.currentCallList[0] : {};
|
|
1823
|
-
if (((
|
|
1823
|
+
if (((_o = this.currentCall) === null || _o === void 0 ? void 0 : _o.isHold) && !((_p = this.currentCall) === null || _p === void 0 ? void 0 : _p.isConference)) {
|
|
1824
1824
|
yield this.onholdOrUnholdParticipant({
|
|
1825
|
-
participantId: [(
|
|
1825
|
+
participantId: [(_q = this.currentCall) === null || _q === void 0 ? void 0 : _q.participantId],
|
|
1826
1826
|
conferenceId: this.conferenceId,
|
|
1827
1827
|
hold: false,
|
|
1828
|
-
conference: (
|
|
1828
|
+
conference: (_r = this.currentCall) === null || _r === void 0 ? void 0 : _r.isConference
|
|
1829
1829
|
});
|
|
1830
1830
|
// this.currentCallList[0].isHold = false;
|
|
1831
1831
|
}
|
|
1832
|
-
else if (((
|
|
1832
|
+
else if (((_s = this.currentCall) === null || _s === void 0 ? void 0 : _s.isHold) && ((_t = this.currentCall) === null || _t === void 0 ? void 0 : _t.isConference)) {
|
|
1833
1833
|
let conferenceCalllist = this.currentCallList.filter((item) => item.isConference);
|
|
1834
1834
|
if (conferenceCalllist.length > 0) {
|
|
1835
1835
|
yield this.onholdOrUnholdParticipant({
|
|
1836
1836
|
participantId: conferenceCalllist.map((item) => item.participantId),
|
|
1837
1837
|
conferenceId: this.conferenceId,
|
|
1838
1838
|
hold: false,
|
|
1839
|
-
conference: (
|
|
1839
|
+
conference: (_u = this.currentCall) === null || _u === void 0 ? void 0 : _u.isConference
|
|
1840
1840
|
});
|
|
1841
1841
|
this.isConferenceCallHold = false;
|
|
1842
1842
|
}
|
|
@@ -1929,32 +1929,30 @@ class CallProgressComponent {
|
|
|
1929
1929
|
// console.log(e);
|
|
1930
1930
|
// }
|
|
1931
1931
|
}
|
|
1932
|
-
if
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
}));
|
|
1957
|
-
}
|
|
1932
|
+
// if(changes['conferenceCallInfo']?.currentValue && this.conferenceCallInfo && changes['conferenceCallInfo']?.previousValue?.conferenceSid != changes['conferenceCallInfo']?.currentValue?.conferenceSid) {
|
|
1933
|
+
// this.isConference = true
|
|
1934
|
+
// console.log(this.conferenceCallInfo,'222222222222222')
|
|
1935
|
+
// this.conferenceCallInfo.participants.forEach(async(item: any, index: number) => {
|
|
1936
|
+
// // setTimeout(async() => {
|
|
1937
|
+
// let callInfo = {
|
|
1938
|
+
// from: this.selectedCallerId?.number,
|
|
1939
|
+
// phone: item.direction == "outgoing-call" ? item.to : item.from,
|
|
1940
|
+
// img: '',
|
|
1941
|
+
// name: item.direction == "outgoing-call" ? (item.toName || item.to) : (item.fromName || item.from),
|
|
1942
|
+
// to: item.direction == "outgoing-call" ? item.to : item.from,
|
|
1943
|
+
// direction: item.direction,
|
|
1944
|
+
// status: ''
|
|
1945
|
+
// }
|
|
1946
|
+
// console.log(callInfo,'callInfo33333333333')
|
|
1947
|
+
// if(index == 0) {
|
|
1948
|
+
// this.currentCallList.push(callInfo)
|
|
1949
|
+
// await this.startCall(callInfo);
|
|
1950
|
+
// } else {
|
|
1951
|
+
// await this.callContact(callInfo);
|
|
1952
|
+
// }
|
|
1953
|
+
// // },1000);
|
|
1954
|
+
// })
|
|
1955
|
+
// }
|
|
1958
1956
|
}
|
|
1959
1957
|
getStatus(res) {
|
|
1960
1958
|
// const statusList = ["answered", "participant-hold", "participant-mute", "participant-join", "queued", "in-progress", "initiated", 'ringing', '"connected"'];
|