@vgroup/dialbox 0.4.163 → 0.4.164
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.
|
@@ -3598,6 +3598,23 @@ class DialboxComponent {
|
|
|
3598
3598
|
if (!!incomingCallData?.length) {
|
|
3599
3599
|
// this.incomingCallsList = incomingCallData.participants.filter((item: any) => !item.isLeft) || [];
|
|
3600
3600
|
this.incomingCallsList = incomingCallData || [];
|
|
3601
|
+
let parentCall = [];
|
|
3602
|
+
this.notificationCallList.forEach((call) => {
|
|
3603
|
+
incomingCallData.forEach((item) => {
|
|
3604
|
+
let info = item.participants.find((resInfo) => resInfo.id === call.participantId);
|
|
3605
|
+
// return info?.id
|
|
3606
|
+
if (info) {
|
|
3607
|
+
parentCall.push(info.id);
|
|
3608
|
+
}
|
|
3609
|
+
});
|
|
3610
|
+
});
|
|
3611
|
+
if (parentCall.length > 0) {
|
|
3612
|
+
this.notificationCallList = this.notificationCallList.filter((item) => !parentCall.includes(item));
|
|
3613
|
+
this.incomingCallsList = [...this.incomingCallsList, this.notificationCallList];
|
|
3614
|
+
}
|
|
3615
|
+
else {
|
|
3616
|
+
this.incomingCallsList = [...this.incomingCallsList, this.notificationCallList];
|
|
3617
|
+
}
|
|
3601
3618
|
this.isCallInProgress = true;
|
|
3602
3619
|
this.isDialpadHidden = false;
|
|
3603
3620
|
this.isIncomingCallnotification = false;
|
|
@@ -3801,11 +3818,14 @@ 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
|
}
|