@vgroup/dialbox 0.5.12 → 0.5.13

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.
@@ -3838,15 +3838,18 @@ class DialboxComponent {
3838
3838
  console.log(',,,,,', this.incomingCallnotification);
3839
3839
  if (this.incomingCallnotification.data.content == "IncomingCall") {
3840
3840
  let callerInfo;
3841
- if (this.incomingCallnotification.data.data?.c2cBusiness == 'false') {
3842
- this.extensionService.getUserInformation(this.incomingCallnotification.data.data?.participantId).subscribe((resInfo) => {
3843
- console.log('uesrInfo', resInfo);
3844
- callerInfo = resInfo.c2cInformation;
3845
- this.incomingCallNotification(callerInfo);
3846
- });
3847
- }
3848
- else {
3849
- this.incomingCallNotification({});
3841
+ let numberList = this.callerIdList.map((res) => res.number);
3842
+ if (!numberList.includes(this.incomingCallnotification.data.data?.fromNumber)) {
3843
+ if (this.incomingCallnotification.data.data?.c2cBusiness == 'false') {
3844
+ this.extensionService.getUserInformation(this.incomingCallnotification.data.data?.participantId).subscribe((resInfo) => {
3845
+ console.log('uesrInfo', resInfo);
3846
+ callerInfo = resInfo.c2cInformation;
3847
+ this.incomingCallNotification(callerInfo);
3848
+ });
3849
+ }
3850
+ else {
3851
+ this.incomingCallNotification({});
3852
+ }
3850
3853
  }
3851
3854
  }
3852
3855
  else if (this.incomingCallnotification.data.content == "Missed Call") {