@vgroup/dialbox 0.7.87 → 0.7.88

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.
@@ -2632,14 +2632,14 @@ class CallProgressComponent {
2632
2632
  this.timer = this.getTimeDifference(this.currentCall?.joinedAt);
2633
2633
  }
2634
2634
  if (this.selectedUserInfo?.participantId) {
2635
- let selectedUser = this.currentCallList.find((item) => item?.id == this.selectedUserInfo?.participantId);
2635
+ let selectedUser = this.currentCallList.find((item) => item?.id == this.selectedUserInfo?.id);
2636
2636
  if (selectedUser && (selectedUser?.conferenceId == this.currentConferenceCall?.conferenceId || this.isClickExpand)) {
2637
2637
  selectedUser.IsUserInfoShow = true;
2638
2638
  if (selectedUser.businessNumber == true && !selectedUser.userInfoId) {
2639
2639
  this.toggleC2CInfoPanel(selectedUser);
2640
2640
  }
2641
2641
  else {
2642
- this.selectedUserInfo = selectedUser;
2642
+ this.selectedUserInfo = this.C2ConfoList[selectedUser?.participantId] || selectedUser;
2643
2643
  }
2644
2644
  this.checkTextHeight();
2645
2645
  }
@@ -4919,11 +4919,12 @@ class DialboxComponent {
4919
4919
  }, 2000);
4920
4920
  }
4921
4921
  }
4922
- if (!this.incomingCallsList?.length) {
4922
+ if (!this.incomingCallsList?.length && !this.twilioService.acceptedCallList?.length) {
4923
4923
  setTimeout(() => {
4924
4924
  if (!this.incomingCallsList?.length && !this.twilioService.acceptedCallList?.length) {
4925
4925
  this.isCallInProgress = false;
4926
4926
  this.twilioService.device?.disconnectAll();
4927
+ this.twilioService.spareDevice?.disconnectAll();
4927
4928
  }
4928
4929
  }, 2000);
4929
4930
  }