@vgroup/dialbox 0.4.181 → 0.4.183

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.
@@ -3574,14 +3574,14 @@ class DialboxComponent {
3574
3574
  let parentCall = [];
3575
3575
  this.notificationCallList.forEach((call) => {
3576
3576
  incomingCallData.forEach((item) => {
3577
- let info = item.participants.find((resInfo) => resInfo.id === call.participantId);
3577
+ let info = item.participants.find((resInfo) => (resInfo === null || resInfo === void 0 ? void 0 : resInfo.id) === (call === null || call === void 0 ? void 0 : call.participantId));
3578
3578
  // return info?.id
3579
3579
  if (info) {
3580
3580
  parentCall.push(info.id);
3581
3581
  }
3582
3582
  });
3583
3583
  });
3584
- if (parentCall.length > 0) {
3584
+ if ((parentCall === null || parentCall === void 0 ? void 0 : parentCall.length) > 0) {
3585
3585
  this.notificationCallList = this.notificationCallList.filter((item) => !parentCall.includes(item === null || item === void 0 ? void 0 : item.participantId));
3586
3586
  this.incomingCallsList = [...this.incomingCallsList, ...this.notificationCallList];
3587
3587
  console.log('.....', this.notificationCallList);
@@ -3814,9 +3814,11 @@ class DialboxComponent {
3814
3814
  if (incomingCallIndex > -1) {
3815
3815
  this.incomingCallsList.splice(incomingCallIndex, 1);
3816
3816
  }
3817
+ console.log('test', this.incomingCallsList);
3817
3818
  }
3818
3819
  }
3819
3820
  console.log('notificationCallList', this.notificationCallList);
3821
+ this.cdk.detectChanges();
3820
3822
  // this.extensionService.setIncomingCallStatus(payload).subscribe((res: any) => {
3821
3823
  // console.log(res)
3822
3824
  // })