@vgroup/dialbox 0.5.41 → 0.5.43
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 +5 -2
- package/esm2020/lib/dialbox.component.mjs +3 -3
- package/fesm2015/vgroup-dialbox.mjs +19 -16
- package/fesm2015/vgroup-dialbox.mjs.map +1 -1
- package/fesm2020/vgroup-dialbox.mjs +6 -3
- package/fesm2020/vgroup-dialbox.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -1833,7 +1833,10 @@ class CallProgressComponent {
|
|
|
1833
1833
|
this.newIncomingCallsList.forEach((callInfo, i) => {
|
|
1834
1834
|
this.conferenceId = i == 0 ? this.newIncomingCallsList[i].conferenceId : this.conferenceId;
|
|
1835
1835
|
this.newIncomingCallsList[i].participants.forEach(async (res) => {
|
|
1836
|
-
let contact =
|
|
1836
|
+
let contact = {};
|
|
1837
|
+
if (this.contacts?.length) {
|
|
1838
|
+
contact = this.contacts.find((resData) => resData?.numbersList[0]?.number == (res.direction == "incoming-call" ? res?.from : res?.to));
|
|
1839
|
+
}
|
|
1837
1840
|
if (this.currentCallList.length > 0) {
|
|
1838
1841
|
let index = this.currentCallList.findIndex((item) => item.id == res.id);
|
|
1839
1842
|
if (index == -1 && !res.isLeft) {
|
|
@@ -3585,12 +3588,12 @@ class DialboxComponent {
|
|
|
3585
3588
|
// console.log("WS Event Received:", incomingCallData);
|
|
3586
3589
|
// console.log("WS Event Received:", incomingCallData.data);
|
|
3587
3590
|
this.twilioService.conferenceCallInfo = incomingCallData;
|
|
3591
|
+
incomingCallData = incomingCallData?.LENGTH > 0 ? incomingCallData.filter((item) => item.participants?.length > 0) : [];
|
|
3588
3592
|
if (!!incomingCallData?.length) {
|
|
3589
|
-
incomingCallData = incomingCallData.filter((item) => item.participants?.length > 0);
|
|
3590
3593
|
// this.incomingCallsList = incomingCallData.participants.filter((item: any) => !item.isLeft) || [];
|
|
3591
3594
|
this.incomingCallsList = incomingCallData || [];
|
|
3592
3595
|
let parentCall = [];
|
|
3593
|
-
if (this.notificationCallList
|
|
3596
|
+
if (this.notificationCallList?.length) {
|
|
3594
3597
|
this.notificationCallList = this.notificationCallList.filter((res) => res.endTime >= (new Date().getTime()));
|
|
3595
3598
|
this.notificationCallList.forEach((call) => {
|
|
3596
3599
|
incomingCallData.forEach((item) => {
|