@vgroup/dialbox 0.5.5 → 0.5.7
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,8 +1932,8 @@ class CallProgressComponent {
|
|
|
1932
1932
|
}
|
|
1933
1933
|
});
|
|
1934
1934
|
let currentCall = this.currentCallList.find((item) => item.isAcceptCall && !item.isHold);
|
|
1935
|
-
if (currentCall?.id) {
|
|
1936
|
-
this.currentCall = currentCall;
|
|
1935
|
+
if (currentCall?.id || this.currentCallList.length == 1) {
|
|
1936
|
+
this.currentCall = currentCall || this.currentCallList[0];
|
|
1937
1937
|
}
|
|
1938
1938
|
if (this.selectedUserInfo?.participantId) {
|
|
1939
1939
|
let selectedUser = this.currentCallList.find((item) => item.id == 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
|
|
2891
|
+
return mergeCallList.length <= 1;
|
|
2892
2892
|
}
|
|
2893
2893
|
async mergeCalls() {
|
|
2894
2894
|
// Merge functionality - unmute both calls for conference
|