@vgroup/dialbox 0.3.11 → 0.3.12
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 -13
- package/esm2020/lib/dialbox.component.mjs +6 -2
- package/fesm2015/vgroup-dialbox.mjs +21 -15
- package/fesm2015/vgroup-dialbox.mjs.map +1 -1
- package/fesm2020/vgroup-dialbox.mjs +17 -13
- package/fesm2020/vgroup-dialbox.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -2512,18 +2512,7 @@ class CallProgressComponent {
|
|
|
2512
2512
|
const contactName = [contact?.firstName, contact?.middleName, contact?.lastName]
|
|
2513
2513
|
.filter(Boolean)
|
|
2514
2514
|
.join(' ');
|
|
2515
|
-
this.callData = {
|
|
2516
|
-
// ...this.callData,
|
|
2517
|
-
phone: phoneNumber,
|
|
2518
|
-
displayNum: phoneNumber,
|
|
2519
|
-
name: contactName || phoneNumber,
|
|
2520
|
-
img: contact?.img || 'assets/images/user.jpg',
|
|
2521
|
-
participantId: '',
|
|
2522
|
-
from: this.selectedCallerId?.number,
|
|
2523
|
-
isIncomingCall: false,
|
|
2524
|
-
};
|
|
2525
2515
|
// this.call['callInfo'] = JSON.parse(JSON.stringify(this.callData));
|
|
2526
|
-
this.cdr.detectChanges();
|
|
2527
2516
|
// Get the conference ID from the current call or use the stored one
|
|
2528
2517
|
const conferenceId = this.conferenceId;
|
|
2529
2518
|
if (!conferenceId) {
|
|
@@ -2539,10 +2528,21 @@ class CallProgressComponent {
|
|
|
2539
2528
|
participantNumber: phoneNumber,
|
|
2540
2529
|
conferenceId: conferenceId
|
|
2541
2530
|
});
|
|
2531
|
+
// this.callData = {
|
|
2532
|
+
// ...this.callData,
|
|
2533
|
+
// participantId: ,
|
|
2534
|
+
// }
|
|
2542
2535
|
this.callData = {
|
|
2543
|
-
...this.callData,
|
|
2536
|
+
// ...this.callData,
|
|
2537
|
+
phone: phoneNumber,
|
|
2538
|
+
displayNum: phoneNumber,
|
|
2539
|
+
name: contactName || phoneNumber,
|
|
2540
|
+
img: contact?.img || 'assets/images/user.jpg',
|
|
2544
2541
|
participantId: data?.participantId,
|
|
2542
|
+
from: this.selectedCallerId?.number,
|
|
2543
|
+
isIncomingCall: false,
|
|
2545
2544
|
};
|
|
2545
|
+
this.cdr.detectChanges();
|
|
2546
2546
|
console.log(this.callData, 'this.callData');
|
|
2547
2547
|
console.log('test111111');
|
|
2548
2548
|
this.currentCallList.push(this.callData);
|
|
@@ -3143,7 +3143,11 @@ class DialboxComponent {
|
|
|
3143
3143
|
console.log("WS Event Received:", incomingCallData);
|
|
3144
3144
|
console.log("WS Event Received:", incomingCallData.data);
|
|
3145
3145
|
this.twilioService.conferenceName = incomingCallData.conferenceName;
|
|
3146
|
-
let participants =
|
|
3146
|
+
let participants = [];
|
|
3147
|
+
if (incomingCallData.participants.length && incomingCallData.participants) {
|
|
3148
|
+
participants = incomingCallData.participants.filter((item) => !item.isLeft);
|
|
3149
|
+
}
|
|
3150
|
+
// incomingCallData.participants.length ? incomingCallData.participants.filter((item: any) => !item.isLeft) : [];
|
|
3147
3151
|
if (participants.length > 0) {
|
|
3148
3152
|
// this.showIncomingCallPopup(incoming, data/
|
|
3149
3153
|
this.isCallInProgress = true;
|