@vgroup/dialbox 0.6.8 → 0.6.10

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.
@@ -3658,15 +3658,15 @@ class DialboxComponent {
3658
3658
  this.registerDragElement();
3659
3659
  }
3660
3660
  ngOnChanges(changes) {
3661
- var _a, _b, _c, _d, _e, _f, _g, _h;
3661
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
3662
3662
  if (((_a = changes['incomingCallnotification']) === null || _a === void 0 ? void 0 : _a.currentValue) && this.incomingCallnotification) {
3663
3663
  this.isIncomingCallnotification = true;
3664
- if (this.incomingCallnotification.data.content == "IncomingCall") {
3664
+ if (this.incomingCallnotification.data.content == "IncomingCall" && this.incomingCallnotification.data.data.status != "rejected") {
3665
3665
  let callerInfo;
3666
3666
  let numberList = this.callerIdList.map((res) => res.number);
3667
3667
  if (!numberList.includes((_b = this.incomingCallnotification.data.data) === null || _b === void 0 ? void 0 : _b.fromNumber)) {
3668
- if (((_c = this.incomingCallnotification.data.data) === null || _c === void 0 ? void 0 : _c.c2cBusiness) != 'false') {
3669
- this.extensionService.getUserInformation((_d = this.incomingCallnotification.data.data) === null || _d === void 0 ? void 0 : _d.participantId).subscribe((resInfo) => {
3668
+ if (((_d = (_c = this.incomingCallnotification.data) === null || _c === void 0 ? void 0 : _c.data) === null || _d === void 0 ? void 0 : _d.c2cBusiness) != 'false' && ((_e = this.incomingCallnotification.data.data) === null || _e === void 0 ? void 0 : _e.participantId)) {
3669
+ this.extensionService.getUserInformation((_f = this.incomingCallnotification.data.data) === null || _f === void 0 ? void 0 : _f.participantId).subscribe((resInfo) => {
3670
3670
  callerInfo = (resInfo === null || resInfo === void 0 ? void 0 : resInfo.c2cInformation) || {};
3671
3671
  this.incomingCallNotification(callerInfo);
3672
3672
  });
@@ -3689,7 +3689,7 @@ class DialboxComponent {
3689
3689
  console.log('test', this.incomingCallsList);
3690
3690
  this.incomeingCallSocketService.pause();
3691
3691
  this.isIncomingCallnotification = false;
3692
- if (!((_e = this.incomingCallsList) === null || _e === void 0 ? void 0 : _e.length)) {
3692
+ if (!((_g = this.incomingCallsList) === null || _g === void 0 ? void 0 : _g.length)) {
3693
3693
  this.isCallInProgress = false;
3694
3694
  }
3695
3695
  this.cdk.detectChanges();
@@ -3697,7 +3697,7 @@ class DialboxComponent {
3697
3697
  }
3698
3698
  console.log('notificationCallList', this.notificationCallList);
3699
3699
  let parentCall = [];
3700
- if ((_f = this.notificationCallList) === null || _f === void 0 ? void 0 : _f.length) {
3700
+ if ((_h = this.notificationCallList) === null || _h === void 0 ? void 0 : _h.length) {
3701
3701
  this.notificationCallList = this.notificationCallList.filter((res) => res.endTime >= (new Date().getTime()));
3702
3702
  this.notificationCallList.forEach((call) => {
3703
3703
  this.incomingCallsList.forEach((item) => {
@@ -3724,10 +3724,10 @@ class DialboxComponent {
3724
3724
  this.twilioService.deviceId = changes['deviceId'].currentValue;
3725
3725
  console.log('Set deviceId in localStorage:', changes['deviceId'].currentValue);
3726
3726
  }
3727
- if (((_g = changes['userId']) === null || _g === void 0 ? void 0 : _g.currentValue) && this.userId) {
3727
+ if (((_j = changes['userId']) === null || _j === void 0 ? void 0 : _j.currentValue) && this.userId) {
3728
3728
  this.extensionService.userId = this.userId;
3729
3729
  }
3730
- if (((_h = changes['contactInfo']) === null || _h === void 0 ? void 0 : _h.currentValue) && this.contactInfo) {
3730
+ if (((_k = changes['contactInfo']) === null || _k === void 0 ? void 0 : _k.currentValue) && this.contactInfo) {
3731
3731
  let contact = this.contactInfo;
3732
3732
  console.log('contactInfo', contact);
3733
3733
  if (contact.number) {