@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.
@@ -2686,6 +2686,7 @@ class CallProgressComponent {
2686
2686
  this.extensionService.getAllParticipants(conferenceSid).subscribe((res) => {
2687
2687
  this.allParticipentList = res.participants;
2688
2688
  this.filteredParticipentList = this.allParticipentList;
2689
+ this.applyFilter();
2689
2690
  // let index = this.contacts.findIndex((c:any)=> c?.numbersList[0]?.number == res?.to);
2690
2691
  // if(index > -1){
2691
2692
  // this.contacts[index].isCallOnHold = true;
@@ -3687,7 +3688,7 @@ class DialboxComponent {
3687
3688
  ngOnChanges(changes) {
3688
3689
  if (changes['incomingCallnotification']?.currentValue && this.incomingCallnotification) {
3689
3690
  this.isIncomingCallnotification = true;
3690
- if (this.incomingCallnotification.data.content == "IncomingCall" && this.incomingCallnotification.data.data.status != "rejected" && this.incomingCallnotification.data.data.status != "accepted") {
3691
+ if (this.incomingCallnotification.data.content == "IncomingCall" && this.incomingCallnotification.data.status != "rejected" && this.incomingCallnotification.data.data.status != "accepted") {
3691
3692
  let callerInfo;
3692
3693
  let numberList = this.callerIdList.map((res) => res.number);
3693
3694
  if (!numberList.includes(this.incomingCallnotification.data.data?.fromNumber)) {
@@ -3702,11 +3703,11 @@ class DialboxComponent {
3702
3703
  }
3703
3704
  }
3704
3705
  }
3705
- else if (this.incomingCallnotification.data.content == "Missed Call") {
3706
+ else if (this.incomingCallnotification.data.content == "Missed Call" || this.incomingCallnotification.data.status != "rejected" || this.incomingCallnotification.data.data.status != "accepted") {
3706
3707
  let index = this.notificationCallList.findIndex((call) => call.participantId === this.incomingCallnotification.data.data?.recordId || call.participantId === this.incomingCallnotification.data?.recordId || call.participantId === this.incomingCallnotification.data.data?.participantId);
3707
3708
  if (index > -1) {
3708
3709
  this.notificationCallList.splice(index, 1);
3709
- let incomingCallIndex = this.incomingCallsList.findIndex((call) => call.participantId === this.incomingCallnotification.data.data?.recordId);
3710
+ let incomingCallIndex = this.incomingCallsList.findIndex((call) => call.participantId === this.incomingCallnotification.data.data?.recordId || call.participantId === this.incomingCallnotification.data.data?.participantId);
3710
3711
  if (incomingCallIndex > -1) {
3711
3712
  this.incomingCallsList.splice(incomingCallIndex, 1);
3712
3713
  this.incomeingCallSocketService.pause();