@vgroup/dialbox 0.5.21 → 0.5.22

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.
@@ -3771,7 +3771,7 @@ class DialboxComponent {
3771
3771
  this.registerDragElement();
3772
3772
  }
3773
3773
  ngOnChanges(changes) {
3774
- var _a, _b, _c, _d, _e, _f;
3774
+ var _a, _b, _c, _d, _e, _f, _g;
3775
3775
  if (((_a = changes['incomingCallnotification']) === null || _a === void 0 ? void 0 : _a.currentValue) && this.incomingCallnotification) {
3776
3776
  this.isIncomingCallnotification = true;
3777
3777
  if (this.incomingCallnotification.data.content == "IncomingCall") {
@@ -3801,6 +3801,10 @@ class DialboxComponent {
3801
3801
  }
3802
3802
  console.log('test', this.incomingCallsList);
3803
3803
  this.isIncomingCallnotification = false;
3804
+ if (!((_e = this.incomingCallsList) === null || _e === void 0 ? void 0 : _e.length)) {
3805
+ this.isCallInProgress = false;
3806
+ }
3807
+ this.cdk.detectChanges();
3804
3808
  }
3805
3809
  }
3806
3810
  console.log('notificationCallList', this.notificationCallList);
@@ -3814,10 +3818,10 @@ class DialboxComponent {
3814
3818
  this.twilioService.deviceId = changes['deviceId'].currentValue;
3815
3819
  console.log('Set deviceId in localStorage:', changes['deviceId'].currentValue);
3816
3820
  }
3817
- if (((_e = changes['userId']) === null || _e === void 0 ? void 0 : _e.currentValue) && this.userId) {
3821
+ if (((_f = changes['userId']) === null || _f === void 0 ? void 0 : _f.currentValue) && this.userId) {
3818
3822
  this.extensionService.userId = this.userId;
3819
3823
  }
3820
- if (((_f = changes['contactInfo']) === null || _f === void 0 ? void 0 : _f.currentValue) && this.contactInfo) {
3824
+ if (((_g = changes['contactInfo']) === null || _g === void 0 ? void 0 : _g.currentValue) && this.contactInfo) {
3821
3825
  let contact = this.contactInfo;
3822
3826
  console.log('contactInfo', contact);
3823
3827
  if (contact.number) {