@vgroup/dialbox 0.6.99 → 0.7.0

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.
@@ -1885,6 +1885,7 @@ class CallProgressComponent {
1885
1885
  this.allConParticipentList = {};
1886
1886
  this.acceptedCallList = [];
1887
1887
  this.isHoldBtnDisable = false;
1888
+ this.C2ConfoList = {};
1888
1889
  this.isMinimised = false;
1889
1890
  this.showDisconnectModal = false;
1890
1891
  this.call = this.twilioService.call;
@@ -2077,11 +2078,17 @@ class CallProgressComponent {
2077
2078
  if (selectedUser) {
2078
2079
  selectedUser.IsUserInfoShow = true;
2079
2080
  if (selectedUser.businessNumber == true && !selectedUser.userInfoId) {
2080
- this.extensionService.getUserInformation(selectedUser.participantId).subscribe((resInfo) => {
2081
- let index = this.currentCallList.findIndex((item) => (item === null || item === void 0 ? void 0 : item.participantId) == (selectedUser === null || selectedUser === void 0 ? void 0 : selectedUser.id));
2082
- this.currentCallList[index] = this.mapUserInfo(this.currentCallList[index], resInfo === null || resInfo === void 0 ? void 0 : resInfo.c2cInformation);
2083
- this.selectedUserInfo = this.currentCallList[index];
2084
- });
2081
+ if (!this.C2ConfoList[selectedUser.participantId]) {
2082
+ this.extensionService.getUserInformation(selectedUser.participantId).subscribe((resInfo) => {
2083
+ let index = this.currentCallList.findIndex((item) => (item === null || item === void 0 ? void 0 : item.participantId) == (selectedUser === null || selectedUser === void 0 ? void 0 : selectedUser.id));
2084
+ this.currentCallList[index] = this.mapUserInfo(this.currentCallList[index], resInfo === null || resInfo === void 0 ? void 0 : resInfo.c2cInformation);
2085
+ this.selectedUserInfo = this.currentCallList[index];
2086
+ this.C2ConfoList[selectedUser.participantId] = this.currentCallList[index];
2087
+ });
2088
+ }
2089
+ else {
2090
+ this.selectedUserInfo = this.C2ConfoList[selectedUser.participantId];
2091
+ }
2085
2092
  }
2086
2093
  else {
2087
2094
  this.selectedUserInfo = selectedUser;