@vgroup/dialbox 0.5.6 → 0.5.8

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.
@@ -1932,7 +1932,7 @@ class CallProgressComponent {
1932
1932
  }
1933
1933
  });
1934
1934
  let currentCall = this.currentCallList.find((item) => item.isAcceptCall && !item.isHold);
1935
- if (currentCall?.id || this.currentCallList.length == 1) {
1935
+ if (currentCall?.id) {
1936
1936
  this.currentCall = currentCall || this.currentCallList[0];
1937
1937
  }
1938
1938
  if (this.selectedUserInfo?.participantId) {
@@ -2888,7 +2888,7 @@ class CallProgressComponent {
2888
2888
  isMergeCallAllowed() {
2889
2889
  let mergeCallList = this.currentCallList.filter((res) => res.conferenceId == this.currentCall.conferenceId);
2890
2890
  console.log('mergeCallList', mergeCallList);
2891
- return mergeCallList.length > 1;
2891
+ return mergeCallList.length <= 1;
2892
2892
  }
2893
2893
  async mergeCalls() {
2894
2894
  // Merge functionality - unmute both calls for conference