@vgroup/dialbox 0.6.12 → 0.6.14

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.
@@ -2643,6 +2643,7 @@ class CallProgressComponent {
2643
2643
  this.extensionService.getAllParticipants(conferenceSid).subscribe((res) => {
2644
2644
  this.allParticipentList = res.participants;
2645
2645
  this.filteredParticipentList = this.allParticipentList;
2646
+ this.applyFilter();
2646
2647
  // let index = this.contacts.findIndex((c:any)=> c?.numbersList[0]?.number == res?.to);
2647
2648
  // if(index > -1){
2648
2649
  // this.contacts[index].isCallOnHold = true;
@@ -3662,7 +3663,7 @@ class DialboxComponent {
3662
3663
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
3663
3664
  if (((_a = changes['incomingCallnotification']) === null || _a === void 0 ? void 0 : _a.currentValue) && this.incomingCallnotification) {
3664
3665
  this.isIncomingCallnotification = true;
3665
- if (this.incomingCallnotification.data.content == "IncomingCall" && this.incomingCallnotification.data.data.status != "rejected" && this.incomingCallnotification.data.data.status != "accepted") {
3666
+ if (this.incomingCallnotification.data.content == "IncomingCall" && this.incomingCallnotification.data.status != "rejected" && this.incomingCallnotification.data.data.status != "accepted") {
3666
3667
  let callerInfo;
3667
3668
  let numberList = this.callerIdList.map((res) => res.number);
3668
3669
  if (!numberList.includes((_b = this.incomingCallnotification.data.data) === null || _b === void 0 ? void 0 : _b.fromNumber)) {
@@ -3677,11 +3678,11 @@ class DialboxComponent {
3677
3678
  }
3678
3679
  }
3679
3680
  }
3680
- else if (this.incomingCallnotification.data.content == "Missed Call") {
3681
+ else if (this.incomingCallnotification.data.content == "Missed Call" || this.incomingCallnotification.data.status != "rejected" || this.incomingCallnotification.data.data.status != "accepted") {
3681
3682
  let index = this.notificationCallList.findIndex((call) => { var _a, _b, _c; return call.participantId === ((_a = this.incomingCallnotification.data.data) === null || _a === void 0 ? void 0 : _a.recordId) || call.participantId === ((_b = this.incomingCallnotification.data) === null || _b === void 0 ? void 0 : _b.recordId) || call.participantId === ((_c = this.incomingCallnotification.data.data) === null || _c === void 0 ? void 0 : _c.participantId); });
3682
3683
  if (index > -1) {
3683
3684
  this.notificationCallList.splice(index, 1);
3684
- let incomingCallIndex = this.incomingCallsList.findIndex((call) => { var _a; return call.participantId === ((_a = this.incomingCallnotification.data.data) === null || _a === void 0 ? void 0 : _a.recordId); });
3685
+ let incomingCallIndex = this.incomingCallsList.findIndex((call) => { var _a, _b; return call.participantId === ((_a = this.incomingCallnotification.data.data) === null || _a === void 0 ? void 0 : _a.recordId) || call.participantId === ((_b = this.incomingCallnotification.data.data) === null || _b === void 0 ? void 0 : _b.participantId); });
3685
3686
  if (incomingCallIndex > -1) {
3686
3687
  this.incomingCallsList.splice(incomingCallIndex, 1);
3687
3688
  this.incomeingCallSocketService.pause();