@vgroup/dialbox 0.5.11 → 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.
@@ -1937,15 +1937,15 @@ class CallProgressComponent {
1937
1937
  this.isRinging = false;
1938
1938
  this.isConcurrentIncoming = false;
1939
1939
  this.incomingCallDiv = false;
1940
- this.call.disconnect();
1941
- this.cdr.detectChanges();
1942
1940
  this.currentCallList = [];
1943
1941
  this.currentCall = {};
1944
1942
  this.isRinging = false;
1945
1943
  this.isCallInProgress = false;
1946
- // this.twilioService.device.disconnectAll()
1947
1944
  this.isConferenceCallHold = false;
1948
1945
  this.stopTimer();
1946
+ this.call.disconnect();
1947
+ this.cdr.detectChanges();
1948
+ // this.twilioService.device.disconnectAll()
1949
1949
  this.endCallEvent.emit();
1950
1950
  }
1951
1951
  }
@@ -3792,7 +3792,7 @@ class DialboxComponent {
3792
3792
  this.registerDragElement();
3793
3793
  }
3794
3794
  ngOnChanges(changes) {
3795
- var _a, _b, _c, _d, _e;
3795
+ var _a, _b, _c, _d, _e, _f;
3796
3796
  if (((_a = changes['incomingCallnotification']) === null || _a === void 0 ? void 0 : _a.currentValue) && this.incomingCallnotification) {
3797
3797
  this.isIncomingCallnotification = true;
3798
3798
  // let payload = {
@@ -3806,15 +3806,18 @@ class DialboxComponent {
3806
3806
  console.log(',,,,,', this.incomingCallnotification);
3807
3807
  if (this.incomingCallnotification.data.content == "IncomingCall") {
3808
3808
  let callerInfo;
3809
- if (((_b = this.incomingCallnotification.data.data) === null || _b === void 0 ? void 0 : _b.c2cBusiness) == 'false') {
3810
- this.extensionService.getUserInformation((_c = this.incomingCallnotification.data.data) === null || _c === void 0 ? void 0 : _c.participantId).subscribe((resInfo) => {
3811
- console.log('uesrInfo', resInfo);
3812
- callerInfo = resInfo.c2cInformation;
3813
- this.incomingCallNotification(callerInfo);
3814
- });
3815
- }
3816
- else {
3817
- this.incomingCallNotification({});
3809
+ let numberList = this.callerIdList.map((res) => res.number);
3810
+ if (!numberList.includes((_b = this.incomingCallnotification.data.data) === null || _b === void 0 ? void 0 : _b.fromNumber)) {
3811
+ if (((_c = this.incomingCallnotification.data.data) === null || _c === void 0 ? void 0 : _c.c2cBusiness) == 'false') {
3812
+ this.extensionService.getUserInformation((_d = this.incomingCallnotification.data.data) === null || _d === void 0 ? void 0 : _d.participantId).subscribe((resInfo) => {
3813
+ console.log('uesrInfo', resInfo);
3814
+ callerInfo = resInfo.c2cInformation;
3815
+ this.incomingCallNotification(callerInfo);
3816
+ });
3817
+ }
3818
+ else {
3819
+ this.incomingCallNotification({});
3820
+ }
3818
3821
  }
3819
3822
  }
3820
3823
  else if (this.incomingCallnotification.data.content == "Missed Call") {
@@ -3841,10 +3844,10 @@ class DialboxComponent {
3841
3844
  this.twilioService.deviceId = changes['deviceId'].currentValue;
3842
3845
  console.log('Set deviceId in localStorage:', changes['deviceId'].currentValue);
3843
3846
  }
3844
- if (((_d = changes['userId']) === null || _d === void 0 ? void 0 : _d.currentValue) && this.userId) {
3847
+ if (((_e = changes['userId']) === null || _e === void 0 ? void 0 : _e.currentValue) && this.userId) {
3845
3848
  this.extensionService.userId = this.userId;
3846
3849
  }
3847
- if (((_e = changes['contactInfo']) === null || _e === void 0 ? void 0 : _e.currentValue) && this.contactInfo) {
3850
+ if (((_f = changes['contactInfo']) === null || _f === void 0 ? void 0 : _f.currentValue) && this.contactInfo) {
3848
3851
  let contact = this.contactInfo;
3849
3852
  console.log('contactInfo', contact);
3850
3853
  if (contact.number) {