@vgroup/dialbox 0.3.83 → 0.3.84
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,7 @@ class CallProgressComponent {
|
|
|
1887
1888
|
});
|
|
1888
1889
|
}
|
|
1889
1890
|
});
|
|
1891
|
+
this.currentCallList = this.currentCallList.find((item) => item.id == this.currentCall.id);
|
|
1890
1892
|
}
|
|
1891
1893
|
else if (!this.newIncomingCallsList.length) {
|
|
1892
1894
|
this.isConcurrentIncoming = false;
|
|
@@ -2198,7 +2200,7 @@ class CallProgressComponent {
|
|
|
2198
2200
|
// }
|
|
2199
2201
|
async endCall(isAllCallEnd) {
|
|
2200
2202
|
console.log('endCall() called');
|
|
2201
|
-
console.log('Current call:', this.call?.parameters['From']);
|
|
2203
|
+
// console.log('Current call:', this.call?.parameters['From']);
|
|
2202
2204
|
console.log('Held call exists:', !!this.heldCall);
|
|
2203
2205
|
// Leaving conference state when ending current call action
|
|
2204
2206
|
this.isConference = false;
|
|
@@ -2546,8 +2548,8 @@ class CallProgressComponent {
|
|
|
2546
2548
|
// hold: false
|
|
2547
2549
|
// });
|
|
2548
2550
|
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']);
|
|
2551
|
+
// console.log('Before swap - Active call:', this.call.parameters['From']);
|
|
2552
|
+
// console.log('Before swap - Held call:', this.heldCall.parameters['From']);
|
|
2551
2553
|
// Swap the calls
|
|
2552
2554
|
// const temp = this.call;
|
|
2553
2555
|
// this.call = this.heldCall;
|
|
@@ -2555,10 +2557,10 @@ class CallProgressComponent {
|
|
|
2555
2557
|
// this.call.mute(false);
|
|
2556
2558
|
// this.heldCall.mute(true);
|
|
2557
2559
|
// 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') || '-';
|
|
2560
|
+
// const fromNumber = this.call.parameters['From'];
|
|
2561
|
+
// const callerName = this.call.customParameters?.get('name') || '-';
|
|
2562
|
+
// const callerImg = this.call.customParameters?.get('image') || 'assets/images/user.jpg';
|
|
2563
|
+
// const displayNumber = this.call.customParameters?.get('displayNumber') || '-';
|
|
2562
2564
|
// Update callData to refresh the main UI
|
|
2563
2565
|
// this.callData = {
|
|
2564
2566
|
// ...this.callData,
|