@vgroup/dialbox 0.3.61 → 0.3.62
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.
|
@@ -1805,33 +1805,8 @@ class CallProgressComponent {
|
|
|
1805
1805
|
try {
|
|
1806
1806
|
if (this.newIncomingCallsList.length) {
|
|
1807
1807
|
// Check if there's an active ongoing call
|
|
1808
|
-
if (this.call && (this.call.status() == 'open')) {
|
|
1809
|
-
// Concurrent incoming - show banner on top of active call
|
|
1810
|
-
this.isConcurrentIncoming = true;
|
|
1811
|
-
this.incomingCallDiv = true;
|
|
1812
|
-
// const inc = changes['newIncomingCallData'].currentValue;
|
|
1813
|
-
// if (this.newIncomingCallsList && Array.isArray(this.newIncomingCallsList)) {
|
|
1814
|
-
// const exists = this.newIncomingCallsList.some((c: any) => c?.parameters?.CallSid === inc?.parameters?.CallSid);
|
|
1815
|
-
// if (!exists) {
|
|
1816
|
-
// this.newIncomingCallsList = [...this.newIncomingCallsList, inc];
|
|
1817
|
-
// this.incomingCallsNewInfo.emit(this.newIncomingCallsList);
|
|
1818
|
-
// }
|
|
1819
|
-
// } else {
|
|
1820
|
-
// this.newIncomingCallsList = [inc];
|
|
1821
|
-
// this.incomingCallsNewInfo.emit(this.newIncomingCallsList);
|
|
1822
|
-
// }
|
|
1823
|
-
console.log(changes['newIncomingCallsList'].currentValue);
|
|
1824
|
-
this.cdr.detectChanges();
|
|
1825
|
-
}
|
|
1826
|
-
else {
|
|
1827
|
-
// Pure incoming - show full incoming UI
|
|
1828
|
-
this.isConcurrentIncoming = false;
|
|
1829
|
-
this.incomingCallDiv = false;
|
|
1830
|
-
this.cdr.detectChanges();
|
|
1831
|
-
}
|
|
1832
1808
|
this.newIncomingCallsList.forEach((res) => {
|
|
1833
|
-
|
|
1834
|
-
if (!data) {
|
|
1809
|
+
if (this.currentCallList.findIndex((item) => item.id == res.callSid) == -1) {
|
|
1835
1810
|
this.currentCallList.push(Object.assign(Object.assign({}, res), { img: 'assets/images/user.jpg', isIncomingCall: true, isHold: false, isMute: false, isConference: false, isAcceptCall: false }));
|
|
1836
1811
|
}
|
|
1837
1812
|
});
|