@vgroup/dialbox 0.4.163 → 0.4.165
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.
|
@@ -3312,6 +3312,7 @@ class DialboxComponent {
|
|
|
3312
3312
|
// Let the library decide to auto-open on incoming call without host wiring
|
|
3313
3313
|
this.autoOpenOnIncoming = true;
|
|
3314
3314
|
this.isIncomingCallnotification = false;
|
|
3315
|
+
this.notificationCallList = [];
|
|
3315
3316
|
this.conferenceCallInfo = {
|
|
3316
3317
|
"createdAt": "Tue Dec 30 07:53:51 UTC 2025",
|
|
3317
3318
|
"conferenceName": "conf_6953850f1522800c4f3cc715",
|
|
@@ -3558,6 +3559,23 @@ class DialboxComponent {
|
|
|
3558
3559
|
if (!!(incomingCallData === null || incomingCallData === void 0 ? void 0 : incomingCallData.length)) {
|
|
3559
3560
|
// this.incomingCallsList = incomingCallData.participants.filter((item: any) => !item.isLeft) || [];
|
|
3560
3561
|
this.incomingCallsList = incomingCallData || [];
|
|
3562
|
+
let parentCall = [];
|
|
3563
|
+
this.notificationCallList.forEach((call) => {
|
|
3564
|
+
incomingCallData.forEach((item) => {
|
|
3565
|
+
let info = item.participants.find((resInfo) => resInfo.id === call.participantId);
|
|
3566
|
+
// return info?.id
|
|
3567
|
+
if (info) {
|
|
3568
|
+
parentCall.push(info.id);
|
|
3569
|
+
}
|
|
3570
|
+
});
|
|
3571
|
+
});
|
|
3572
|
+
if (parentCall.length > 0) {
|
|
3573
|
+
this.notificationCallList = this.notificationCallList.filter((item) => !parentCall.includes(item));
|
|
3574
|
+
this.incomingCallsList = [...this.incomingCallsList, this.notificationCallList];
|
|
3575
|
+
}
|
|
3576
|
+
else {
|
|
3577
|
+
this.incomingCallsList = [...this.incomingCallsList, this.notificationCallList];
|
|
3578
|
+
}
|
|
3561
3579
|
this.isCallInProgress = true;
|
|
3562
3580
|
this.isDialpadHidden = false;
|
|
3563
3581
|
this.isIncomingCallnotification = false;
|
|
@@ -3747,9 +3765,8 @@ class DialboxComponent {
|
|
|
3747
3765
|
this.registerDragElement();
|
|
3748
3766
|
}
|
|
3749
3767
|
ngOnChanges(changes) {
|
|
3750
|
-
var _a, _b, _c, _d, _e;
|
|
3768
|
+
var _a, _b, _c, _d, _e, _f;
|
|
3751
3769
|
if (changes['incomingCallnotification']) {
|
|
3752
|
-
console.log('incomingCallnotification', changes['incomingCallnotification'].currentValue);
|
|
3753
3770
|
this.isIncomingCallnotification = true;
|
|
3754
3771
|
// let payload = {
|
|
3755
3772
|
// recordId: this.incomingCallnotification.data.data.participantId,
|
|
@@ -3762,14 +3779,18 @@ class DialboxComponent {
|
|
|
3762
3779
|
let incomingCall = {
|
|
3763
3780
|
conferenceId: 'no',
|
|
3764
3781
|
isActive: true,
|
|
3782
|
+
isIncomingCall: true,
|
|
3783
|
+
participantId: (_a = this.incomingCallnotification.data.data) === null || _a === void 0 ? void 0 : _a.participantId,
|
|
3765
3784
|
participants: [
|
|
3766
|
-
{ direction: "incoming-call", img: 'assets/images/user.jpg', isIncomingCall: true, isHold: false, isConference: false, isAcceptCall: false, dial: true, phone: (
|
|
3785
|
+
{ direction: "incoming-call", img: 'assets/images/user.jpg', isIncomingCall: true, isHold: false, isConference: false, isAcceptCall: false, dial: true, phone: (_b = this.incomingCallnotification.data.data) === null || _b === void 0 ? void 0 : _b.fromNumber, participantId: (_c = this.incomingCallnotification.data.data) === null || _c === void 0 ? void 0 : _c.participantId, name: (_d = this.incomingCallnotification.data.data) === null || _d === void 0 ? void 0 : _d.fromName, time: '', id: (_e = this.incomingCallnotification.data.data) === null || _e === void 0 ? void 0 : _e.participantId }
|
|
3767
3786
|
]
|
|
3768
3787
|
};
|
|
3769
3788
|
this.incomingCallsList.push(incomingCall);
|
|
3770
|
-
|
|
3789
|
+
this.notificationCallList.push(incomingCall);
|
|
3790
|
+
if ((_f = this.incomingCallnotification.data.data) === null || _f === void 0 ? void 0 : _f.participantId) {
|
|
3771
3791
|
this.isCallInProgress = true;
|
|
3772
3792
|
}
|
|
3793
|
+
console.log('notificationCallList', this.notificationCallList);
|
|
3773
3794
|
// this.extensionService.setIncomingCallStatus(payload).subscribe((res: any) => {
|
|
3774
3795
|
// console.log(res)
|
|
3775
3796
|
// })
|