@vgroup/dialbox 0.3.9 → 0.3.11
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.
- package/esm2020/lib/components/call-progress/call-progress.component.mjs +13 -7
- package/esm2020/lib/dialbox.component.mjs +2 -2
- package/fesm2015/vgroup-dialbox.mjs +14 -10
- package/fesm2015/vgroup-dialbox.mjs.map +1 -1
- package/fesm2020/vgroup-dialbox.mjs +13 -7
- package/fesm2020/vgroup-dialbox.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -2224,6 +2224,7 @@ class CallProgressComponent {
|
|
|
2224
2224
|
});
|
|
2225
2225
|
this.callData = { ...this.callData, participantId: this.addRes?.participantId };
|
|
2226
2226
|
this.call['callInfo'] = JSON.parse(JSON.stringify(this.callData));
|
|
2227
|
+
console.log('test111111');
|
|
2227
2228
|
this.currentCallList.push(callData);
|
|
2228
2229
|
console.log('Initial participantId:', this.addRes?.participantId);
|
|
2229
2230
|
}
|
|
@@ -2501,7 +2502,7 @@ class CallProgressComponent {
|
|
|
2501
2502
|
// Put current call on hold
|
|
2502
2503
|
this.heldCall = this.call;
|
|
2503
2504
|
this.isCallOnHold = true;
|
|
2504
|
-
this.heldCall.mute(true);
|
|
2505
|
+
// this.heldCall.mute(true);
|
|
2505
2506
|
this.heldCall['parameters']['caller_name'] = { ...this.callData };
|
|
2506
2507
|
// this.call=null
|
|
2507
2508
|
// Close contacts panel and show ring animation
|
|
@@ -2517,13 +2518,11 @@ class CallProgressComponent {
|
|
|
2517
2518
|
displayNum: phoneNumber,
|
|
2518
2519
|
name: contactName || phoneNumber,
|
|
2519
2520
|
img: contact?.img || 'assets/images/user.jpg',
|
|
2520
|
-
participantId:
|
|
2521
|
+
participantId: '',
|
|
2521
2522
|
from: this.selectedCallerId?.number,
|
|
2522
2523
|
isIncomingCall: false,
|
|
2523
2524
|
};
|
|
2524
|
-
|
|
2525
|
-
this.currentCallList.push(this.callData);
|
|
2526
|
-
this.call['callInfo'] = JSON.parse(JSON.stringify(this.callData));
|
|
2525
|
+
// this.call['callInfo'] = JSON.parse(JSON.stringify(this.callData));
|
|
2527
2526
|
this.cdr.detectChanges();
|
|
2528
2527
|
// Get the conference ID from the current call or use the stored one
|
|
2529
2528
|
const conferenceId = this.conferenceId;
|
|
@@ -2534,12 +2533,19 @@ class CallProgressComponent {
|
|
|
2534
2533
|
return;
|
|
2535
2534
|
}
|
|
2536
2535
|
// Add participant to the conference
|
|
2537
|
-
await this.addParticipantToCall({
|
|
2536
|
+
let data = await this.addParticipantToCall({
|
|
2538
2537
|
from: this.callData?.from,
|
|
2539
2538
|
route: "OUTGOING",
|
|
2540
2539
|
participantNumber: phoneNumber,
|
|
2541
2540
|
conferenceId: conferenceId
|
|
2542
2541
|
});
|
|
2542
|
+
this.callData = {
|
|
2543
|
+
...this.callData,
|
|
2544
|
+
participantId: data?.participantId,
|
|
2545
|
+
};
|
|
2546
|
+
console.log(this.callData, 'this.callData');
|
|
2547
|
+
console.log('test111111');
|
|
2548
|
+
this.currentCallList.push(this.callData);
|
|
2543
2549
|
console.log("Participant added to conference:", phoneNumber);
|
|
2544
2550
|
this.showRingAnimation = false;
|
|
2545
2551
|
}
|
|
@@ -3137,7 +3143,7 @@ class DialboxComponent {
|
|
|
3137
3143
|
console.log("WS Event Received:", incomingCallData);
|
|
3138
3144
|
console.log("WS Event Received:", incomingCallData.data);
|
|
3139
3145
|
this.twilioService.conferenceName = incomingCallData.conferenceName;
|
|
3140
|
-
let participants = incomingCallData
|
|
3146
|
+
let participants = incomingCallData?.participants?.length > 0 ? incomingCallData.participants.filter((item) => !item.isLeft) : [];
|
|
3141
3147
|
if (participants.length > 0) {
|
|
3142
3148
|
// this.showIncomingCallPopup(incoming, data/
|
|
3143
3149
|
this.isCallInProgress = true;
|