@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
|
@@ -2233,6 +2233,7 @@ class CallProgressComponent {
|
|
|
2233
2233
|
});
|
|
2234
2234
|
this.callData = Object.assign(Object.assign({}, this.callData), { participantId: (_b = this.addRes) === null || _b === void 0 ? void 0 : _b.participantId });
|
|
2235
2235
|
this.call['callInfo'] = JSON.parse(JSON.stringify(this.callData));
|
|
2236
|
+
console.log('test111111');
|
|
2236
2237
|
this.currentCallList.push(callData);
|
|
2237
2238
|
console.log('Initial participantId:', (_c = this.addRes) === null || _c === void 0 ? void 0 : _c.participantId);
|
|
2238
2239
|
}
|
|
@@ -2545,18 +2546,7 @@ class CallProgressComponent {
|
|
|
2545
2546
|
const contactName = [contact === null || contact === void 0 ? void 0 : contact.firstName, contact === null || contact === void 0 ? void 0 : contact.middleName, contact === null || contact === void 0 ? void 0 : contact.lastName]
|
|
2546
2547
|
.filter(Boolean)
|
|
2547
2548
|
.join(' ');
|
|
2548
|
-
this.callData = {
|
|
2549
|
-
// ...this.callData,
|
|
2550
|
-
phone: phoneNumber,
|
|
2551
|
-
displayNum: phoneNumber,
|
|
2552
|
-
name: contactName || phoneNumber,
|
|
2553
|
-
img: (contact === null || contact === void 0 ? void 0 : contact.img) || 'assets/images/user.jpg',
|
|
2554
|
-
participantId: '',
|
|
2555
|
-
from: (_d = this.selectedCallerId) === null || _d === void 0 ? void 0 : _d.number,
|
|
2556
|
-
isIncomingCall: false,
|
|
2557
|
-
};
|
|
2558
2549
|
// this.call['callInfo'] = JSON.parse(JSON.stringify(this.callData));
|
|
2559
|
-
this.cdr.detectChanges();
|
|
2560
2550
|
// Get the conference ID from the current call or use the stored one
|
|
2561
2551
|
const conferenceId = this.conferenceId;
|
|
2562
2552
|
if (!conferenceId) {
|
|
@@ -2567,13 +2557,28 @@ class CallProgressComponent {
|
|
|
2567
2557
|
}
|
|
2568
2558
|
// Add participant to the conference
|
|
2569
2559
|
let data = yield this.addParticipantToCall({
|
|
2570
|
-
from: (
|
|
2560
|
+
from: (_d = this.callData) === null || _d === void 0 ? void 0 : _d.from,
|
|
2571
2561
|
route: "OUTGOING",
|
|
2572
2562
|
participantNumber: phoneNumber,
|
|
2573
2563
|
conferenceId: conferenceId
|
|
2574
2564
|
});
|
|
2575
|
-
this.callData =
|
|
2565
|
+
// this.callData = {
|
|
2566
|
+
// ...this.callData,
|
|
2567
|
+
// participantId: ,
|
|
2568
|
+
// }
|
|
2569
|
+
this.callData = {
|
|
2570
|
+
// ...this.callData,
|
|
2571
|
+
phone: phoneNumber,
|
|
2572
|
+
displayNum: phoneNumber,
|
|
2573
|
+
name: contactName || phoneNumber,
|
|
2574
|
+
img: (contact === null || contact === void 0 ? void 0 : contact.img) || 'assets/images/user.jpg',
|
|
2575
|
+
participantId: data === null || data === void 0 ? void 0 : data.participantId,
|
|
2576
|
+
from: (_e = this.selectedCallerId) === null || _e === void 0 ? void 0 : _e.number,
|
|
2577
|
+
isIncomingCall: false,
|
|
2578
|
+
};
|
|
2579
|
+
this.cdr.detectChanges();
|
|
2576
2580
|
console.log(this.callData, 'this.callData');
|
|
2581
|
+
console.log('test111111');
|
|
2577
2582
|
this.currentCallList.push(this.callData);
|
|
2578
2583
|
console.log("Participant added to conference:", phoneNumber);
|
|
2579
2584
|
this.showRingAnimation = false;
|
|
@@ -3177,7 +3182,11 @@ class DialboxComponent {
|
|
|
3177
3182
|
console.log("WS Event Received:", incomingCallData);
|
|
3178
3183
|
console.log("WS Event Received:", incomingCallData.data);
|
|
3179
3184
|
this.twilioService.conferenceName = incomingCallData.conferenceName;
|
|
3180
|
-
let participants =
|
|
3185
|
+
let participants = [];
|
|
3186
|
+
if (incomingCallData.participants.length && incomingCallData.participants) {
|
|
3187
|
+
participants = incomingCallData.participants.filter((item) => !item.isLeft);
|
|
3188
|
+
}
|
|
3189
|
+
// incomingCallData.participants.length ? incomingCallData.participants.filter((item: any) => !item.isLeft) : [];
|
|
3181
3190
|
if (participants.length > 0) {
|
|
3182
3191
|
// this.showIncomingCallPopup(incoming, data/
|
|
3183
3192
|
this.isCallInProgress = true;
|