@vgroup/dialbox 0.4.162 → 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.
- package/esm2020/lib/components/call-progress/call-progress.component.mjs +2 -2
- package/esm2020/lib/dialbox.component.mjs +21 -1
- package/fesm2015/vgroup-dialbox.mjs +24 -4
- package/fesm2015/vgroup-dialbox.mjs.map +1 -1
- package/fesm2020/vgroup-dialbox.mjs +21 -1
- package/fesm2020/vgroup-dialbox.mjs.map +1 -1
- package/lib/dialbox.component.d.ts +1 -0
- package/package.json +1 -1
|
@@ -2021,7 +2021,7 @@ class CallProgressComponent {
|
|
|
2021
2021
|
getStatus(res) {
|
|
2022
2022
|
// const statusList = ["answered", "participant-hold", "participant-mute", "participant-join", "queued", "in-progress", "initiated", 'ringing', '"connected"'];
|
|
2023
2023
|
if (res.direction == "incoming-call") {
|
|
2024
|
-
return this.isCurrentIncomingCallList.includes(res.id);
|
|
2024
|
+
return this.incomeingCallSocketService.isCurrentIncomingCallList.includes(res.id);
|
|
2025
2025
|
}
|
|
2026
2026
|
else {
|
|
2027
2027
|
if (res.status == 'answered' && res.direction == "incoming-call") {
|
|
@@ -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
|
}
|