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