@vgroup/dialbox 0.3.83 → 0.3.85
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.
|
@@ -1766,7 +1766,7 @@ class CallProgressComponent {
|
|
|
1766
1766
|
return;
|
|
1767
1767
|
}
|
|
1768
1768
|
console.log('TwilioService.currentCall emitted:', incoming);
|
|
1769
|
-
console.log('Current call status:', this.call?.status());
|
|
1769
|
+
// console.log('Current call status:', this.call?.status());
|
|
1770
1770
|
// If there is an ongoing call, show concurrent incoming banner
|
|
1771
1771
|
console.log('Concurrent incoming detected - showing banner');
|
|
1772
1772
|
this.isConcurrentIncoming = true;
|
|
@@ -1794,7 +1794,7 @@ class CallProgressComponent {
|
|
|
1794
1794
|
}
|
|
1795
1795
|
else if (changes['callData'].currentValue?.displayNum || changes['callData'].currentValue?.from) {
|
|
1796
1796
|
console.log('test-startCall123', changes['callData'].currentValue);
|
|
1797
|
-
|
|
1797
|
+
this.currentCall = { ...changes['callData'].currentValue, img: 'assets/images/user.jpg' };
|
|
1798
1798
|
this.startCall(changes['callData'].currentValue);
|
|
1799
1799
|
}
|
|
1800
1800
|
}
|
|
@@ -1802,6 +1802,7 @@ class CallProgressComponent {
|
|
|
1802
1802
|
try {
|
|
1803
1803
|
if (this.newIncomingCallsList.length) {
|
|
1804
1804
|
// Check if there's an active ongoing call
|
|
1805
|
+
this.conferenceId = this.newIncomingCallsList[0].conferenceId;
|
|
1805
1806
|
this.newIncomingCallsList.forEach(async (res) => {
|
|
1806
1807
|
if (this.currentCallList.length > 0) {
|
|
1807
1808
|
let index = this.currentCallList.findIndex((item) => item.id == res.id);
|
|
@@ -1887,6 +1888,8 @@ class CallProgressComponent {
|
|
|
1887
1888
|
});
|
|
1888
1889
|
}
|
|
1889
1890
|
});
|
|
1891
|
+
this.currentCall = this.currentCallList.find((item) => item.id == this.currentCall.id);
|
|
1892
|
+
this.cdr.detectChanges();
|
|
1890
1893
|
}
|
|
1891
1894
|
else if (!this.newIncomingCallsList.length) {
|
|
1892
1895
|
this.isConcurrentIncoming = false;
|
|
@@ -2198,7 +2201,7 @@ class CallProgressComponent {
|
|
|
2198
2201
|
// }
|
|
2199
2202
|
async endCall(isAllCallEnd) {
|
|
2200
2203
|
console.log('endCall() called');
|
|
2201
|
-
console.log('Current call:', this.call?.parameters['From']);
|
|
2204
|
+
// console.log('Current call:', this.call?.parameters['From']);
|
|
2202
2205
|
console.log('Held call exists:', !!this.heldCall);
|
|
2203
2206
|
// Leaving conference state when ending current call action
|
|
2204
2207
|
this.isConference = false;
|
|
@@ -2546,8 +2549,8 @@ class CallProgressComponent {
|
|
|
2546
2549
|
// hold: false
|
|
2547
2550
|
// });
|
|
2548
2551
|
console.log('Swapping calls...');
|
|
2549
|
-
console.log('Before swap - Active call:', this.call.parameters['From']);
|
|
2550
|
-
console.log('Before swap - Held call:', this.heldCall.parameters['From']);
|
|
2552
|
+
// console.log('Before swap - Active call:', this.call.parameters['From']);
|
|
2553
|
+
// console.log('Before swap - Held call:', this.heldCall.parameters['From']);
|
|
2551
2554
|
// Swap the calls
|
|
2552
2555
|
// const temp = this.call;
|
|
2553
2556
|
// this.call = this.heldCall;
|
|
@@ -2555,10 +2558,10 @@ class CallProgressComponent {
|
|
|
2555
2558
|
// this.call.mute(false);
|
|
2556
2559
|
// this.heldCall.mute(true);
|
|
2557
2560
|
// Update UI with active call info - extract from call parameters
|
|
2558
|
-
const fromNumber = this.call.parameters['From'];
|
|
2559
|
-
const callerName = this.call.customParameters?.get('name') || '-';
|
|
2560
|
-
const callerImg = this.call.customParameters?.get('image') || 'assets/images/user.jpg';
|
|
2561
|
-
const displayNumber = this.call.customParameters?.get('displayNumber') || '-';
|
|
2561
|
+
// const fromNumber = this.call.parameters['From'];
|
|
2562
|
+
// const callerName = this.call.customParameters?.get('name') || '-';
|
|
2563
|
+
// const callerImg = this.call.customParameters?.get('image') || 'assets/images/user.jpg';
|
|
2564
|
+
// const displayNumber = this.call.customParameters?.get('displayNumber') || '-';
|
|
2562
2565
|
// Update callData to refresh the main UI
|
|
2563
2566
|
// this.callData = {
|
|
2564
2567
|
// ...this.callData,
|