@vgroup/dialbox 0.7.86 → 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.
- package/esm2020/lib/components/call-progress/call-progress.component.mjs +3 -8
- package/esm2020/lib/dialbox.component.mjs +3 -2
- package/esm2020/lib/service/twilio.service.mjs +1 -1
- package/fesm2015/vgroup-dialbox.mjs +6 -10
- package/fesm2015/vgroup-dialbox.mjs.map +1 -1
- package/fesm2020/vgroup-dialbox.mjs +4 -8
- package/fesm2020/vgroup-dialbox.mjs.map +1 -1
- package/lib/service/twilio.service.d.ts +1 -1
- package/package.json +1 -1
|
@@ -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?.
|
|
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
|
}
|
|
@@ -3486,11 +3486,6 @@ class CallProgressComponent {
|
|
|
3486
3486
|
};
|
|
3487
3487
|
this.acceptedCallList.push(acceptedEntry);
|
|
3488
3488
|
this.twilioService.acceptedCallList.push(callToAccept);
|
|
3489
|
-
// Twilio's accept() only starts the connection handshake — it does not
|
|
3490
|
-
// guarantee the call actually connects. Only call the API once Twilio
|
|
3491
|
-
// confirms the connection ('accept' event); if Twilio fails/breaks
|
|
3492
|
-
// before that, show an error instead of telling the backend the call
|
|
3493
|
-
// was answered.
|
|
3494
3489
|
let isTwilioConnectSettled = false;
|
|
3495
3490
|
const handleTwilioConnectFailure = (message) => {
|
|
3496
3491
|
if (isTwilioConnectSettled)
|
|
@@ -4924,11 +4919,12 @@ class DialboxComponent {
|
|
|
4924
4919
|
}, 2000);
|
|
4925
4920
|
}
|
|
4926
4921
|
}
|
|
4927
|
-
if (!this.incomingCallsList?.length) {
|
|
4922
|
+
if (!this.incomingCallsList?.length && !this.twilioService.acceptedCallList?.length) {
|
|
4928
4923
|
setTimeout(() => {
|
|
4929
4924
|
if (!this.incomingCallsList?.length && !this.twilioService.acceptedCallList?.length) {
|
|
4930
4925
|
this.isCallInProgress = false;
|
|
4931
4926
|
this.twilioService.device?.disconnectAll();
|
|
4927
|
+
this.twilioService.spareDevice?.disconnectAll();
|
|
4932
4928
|
}
|
|
4933
4929
|
}, 2000);
|
|
4934
4930
|
}
|