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