@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.
|
@@ -3352,6 +3352,7 @@ class DialboxComponent {
|
|
|
3352
3352
|
// Let the library decide to auto-open on incoming call without host wiring
|
|
3353
3353
|
this.autoOpenOnIncoming = true;
|
|
3354
3354
|
this.isIncomingCallnotification = false;
|
|
3355
|
+
this.notificationCallList = [];
|
|
3355
3356
|
this.conferenceCallInfo = {
|
|
3356
3357
|
"createdAt": "Tue Dec 30 07:53:51 UTC 2025",
|
|
3357
3358
|
"conferenceName": "conf_6953850f1522800c4f3cc715",
|
|
@@ -3598,6 +3599,23 @@ class DialboxComponent {
|
|
|
3598
3599
|
if (!!incomingCallData?.length) {
|
|
3599
3600
|
// this.incomingCallsList = incomingCallData.participants.filter((item: any) => !item.isLeft) || [];
|
|
3600
3601
|
this.incomingCallsList = incomingCallData || [];
|
|
3602
|
+
let parentCall = [];
|
|
3603
|
+
this.notificationCallList.forEach((call) => {
|
|
3604
|
+
incomingCallData.forEach((item) => {
|
|
3605
|
+
let info = item.participants.find((resInfo) => resInfo.id === call.participantId);
|
|
3606
|
+
// return info?.id
|
|
3607
|
+
if (info) {
|
|
3608
|
+
parentCall.push(info.id);
|
|
3609
|
+
}
|
|
3610
|
+
});
|
|
3611
|
+
});
|
|
3612
|
+
if (parentCall.length > 0) {
|
|
3613
|
+
this.notificationCallList = this.notificationCallList.filter((item) => !parentCall.includes(item));
|
|
3614
|
+
this.incomingCallsList = [...this.incomingCallsList, this.notificationCallList];
|
|
3615
|
+
}
|
|
3616
|
+
else {
|
|
3617
|
+
this.incomingCallsList = [...this.incomingCallsList, this.notificationCallList];
|
|
3618
|
+
}
|
|
3601
3619
|
this.isCallInProgress = true;
|
|
3602
3620
|
this.isDialpadHidden = false;
|
|
3603
3621
|
this.isIncomingCallnotification = false;
|
|
@@ -3788,7 +3806,6 @@ class DialboxComponent {
|
|
|
3788
3806
|
}
|
|
3789
3807
|
ngOnChanges(changes) {
|
|
3790
3808
|
if (changes['incomingCallnotification']) {
|
|
3791
|
-
console.log('incomingCallnotification', changes['incomingCallnotification'].currentValue);
|
|
3792
3809
|
this.isIncomingCallnotification = true;
|
|
3793
3810
|
// let payload = {
|
|
3794
3811
|
// recordId: this.incomingCallnotification.data.data.participantId,
|
|
@@ -3801,14 +3818,18 @@ class DialboxComponent {
|
|
|
3801
3818
|
let incomingCall = {
|
|
3802
3819
|
conferenceId: 'no',
|
|
3803
3820
|
isActive: true,
|
|
3821
|
+
isIncomingCall: true,
|
|
3822
|
+
participantId: this.incomingCallnotification.data.data?.participantId,
|
|
3804
3823
|
participants: [
|
|
3805
3824
|
{ direction: "incoming-call", img: 'assets/images/user.jpg', isIncomingCall: true, isHold: false, isConference: false, isAcceptCall: false, dial: true, phone: this.incomingCallnotification.data.data?.fromNumber, participantId: this.incomingCallnotification.data.data?.participantId, name: this.incomingCallnotification.data.data?.fromName, time: '', id: this.incomingCallnotification.data.data?.participantId }
|
|
3806
3825
|
]
|
|
3807
3826
|
};
|
|
3808
3827
|
this.incomingCallsList.push(incomingCall);
|
|
3828
|
+
this.notificationCallList.push(incomingCall);
|
|
3809
3829
|
if (this.incomingCallnotification.data.data?.participantId) {
|
|
3810
3830
|
this.isCallInProgress = true;
|
|
3811
3831
|
}
|
|
3832
|
+
console.log('notificationCallList', this.notificationCallList);
|
|
3812
3833
|
// this.extensionService.setIncomingCallStatus(payload).subscribe((res: any) => {
|
|
3813
3834
|
// console.log(res)
|
|
3814
3835
|
// })
|