@vgroup/dialbox 0.4.180 → 0.4.182
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.
|
@@ -3606,14 +3606,14 @@ class DialboxComponent {
|
|
|
3606
3606
|
let parentCall = [];
|
|
3607
3607
|
this.notificationCallList.forEach((call) => {
|
|
3608
3608
|
incomingCallData.forEach((item) => {
|
|
3609
|
-
let info = item.participants.find((resInfo) => resInfo
|
|
3609
|
+
let info = item.participants.find((resInfo) => resInfo?.id === call?.participantId);
|
|
3610
3610
|
// return info?.id
|
|
3611
3611
|
if (info) {
|
|
3612
3612
|
parentCall.push(info.id);
|
|
3613
3613
|
}
|
|
3614
3614
|
});
|
|
3615
3615
|
});
|
|
3616
|
-
if (parentCall
|
|
3616
|
+
if (parentCall?.length > 0) {
|
|
3617
3617
|
this.notificationCallList = this.notificationCallList.filter((item) => !parentCall.includes(item?.participantId));
|
|
3618
3618
|
this.incomingCallsList = [...this.incomingCallsList, ...this.notificationCallList];
|
|
3619
3619
|
console.log('.....', this.notificationCallList);
|
|
@@ -3845,6 +3845,7 @@ class DialboxComponent {
|
|
|
3845
3845
|
if (incomingCallIndex > -1) {
|
|
3846
3846
|
this.incomingCallsList.splice(incomingCallIndex, 1);
|
|
3847
3847
|
}
|
|
3848
|
+
console.log('test', this.incomingCallsList);
|
|
3848
3849
|
}
|
|
3849
3850
|
}
|
|
3850
3851
|
console.log('notificationCallList', this.notificationCallList);
|
|
@@ -3853,7 +3854,7 @@ class DialboxComponent {
|
|
|
3853
3854
|
// })
|
|
3854
3855
|
}
|
|
3855
3856
|
if (changes['deviceId']) {
|
|
3856
|
-
localStorage.setItem('deviceId', changes['deviceId'].currentValue);
|
|
3857
|
+
// localStorage.setItem('deviceId', changes['deviceId'].currentValue);
|
|
3857
3858
|
this.twilioService.deviceId = changes['deviceId'].currentValue;
|
|
3858
3859
|
console.log('Set deviceId in localStorage:', changes['deviceId'].currentValue);
|
|
3859
3860
|
}
|