@vgroup/dialbox 0.7.53 → 0.7.55
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 +12 -2
- package/esm2020/lib/dialbox.component.mjs +1 -4
- package/fesm2015/vgroup-dialbox.mjs +28 -21
- package/fesm2015/vgroup-dialbox.mjs.map +1 -1
- package/fesm2020/vgroup-dialbox.mjs +11 -4
- package/fesm2020/vgroup-dialbox.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -3714,6 +3714,11 @@ class CallProgressComponent {
|
|
|
3714
3714
|
this.showClearBtn = true;
|
|
3715
3715
|
}
|
|
3716
3716
|
let str = String(num);
|
|
3717
|
+
let selfCall = this.newIncomingCallsList.find((res) => res?.conferenceId == this.currentCall?.conferenceId)?.participants.find((resData) => ((this.deviceNumberList.includes(resData?.from) && resData?.client) || (this.deviceNumberList.includes(resData?.to) && resData?.direction == 'incoming-call' && resData?.host)) && !resData?.isLeft);
|
|
3718
|
+
let device = this.twilioService.getIncomingCallById(selfCall?.callSid || selfCall?.clientSid);
|
|
3719
|
+
if (device && device?._status == 'open') {
|
|
3720
|
+
device.sendDigits(str);
|
|
3721
|
+
}
|
|
3717
3722
|
this.call?.sendDigits(str);
|
|
3718
3723
|
}
|
|
3719
3724
|
catch (e) {
|
|
@@ -3722,6 +3727,11 @@ class CallProgressComponent {
|
|
|
3722
3727
|
}
|
|
3723
3728
|
onCallInputEnter(ev) {
|
|
3724
3729
|
try {
|
|
3730
|
+
let selfCall = this.newIncomingCallsList.find((res) => res?.conferenceId == this.currentCall?.conferenceId)?.participants.find((resData) => ((this.deviceNumberList.includes(resData?.from) && resData?.client) || (this.deviceNumberList.includes(resData?.to) && resData?.direction == 'incoming-call' && resData?.host)) && !resData?.isLeft);
|
|
3731
|
+
let device = this.twilioService.getIncomingCallById(selfCall?.callSid || selfCall?.clientSid);
|
|
3732
|
+
if (device && device?._status == 'open') {
|
|
3733
|
+
device.sendDigits(String(ev.key));
|
|
3734
|
+
}
|
|
3725
3735
|
this.call?.sendDigits(String(ev.key));
|
|
3726
3736
|
}
|
|
3727
3737
|
catch (e) {
|
|
@@ -4087,7 +4097,7 @@ class CallProgressComponent {
|
|
|
4087
4097
|
let contactInfo = this.contacts.find((c) => {
|
|
4088
4098
|
return c?.numbersList[0]?.number == number || c?.numbersList[1]?.number == number;
|
|
4089
4099
|
});
|
|
4090
|
-
return contactInfo?.firstName || contactInfo?.lastName ? `${contactInfo?.firstName || ''} ${contactInfo?.lastName || ''}` : null;
|
|
4100
|
+
return contactInfo?.firstName || contactInfo?.middleName || contactInfo?.lastName ? `${contactInfo?.firstName || ''} ${contactInfo?.middleName || ''} ${contactInfo?.lastName || ''}` : null;
|
|
4091
4101
|
}
|
|
4092
4102
|
getImg(number) {
|
|
4093
4103
|
let contactInfo = this.contacts.find((c) => {
|
|
@@ -4762,11 +4772,8 @@ class DialboxComponent {
|
|
|
4762
4772
|
}
|
|
4763
4773
|
this.incomingFromImage = '';
|
|
4764
4774
|
if (snapshot.data.data?.fromImage) {
|
|
4765
|
-
console.log('Incoming Notification:', snapshot.data.data);
|
|
4766
|
-
console.log('fromImage:', snapshot.data.data?.fromImage);
|
|
4767
4775
|
this.incomingFromImage = snapshot.data.data?.fromImage;
|
|
4768
4776
|
}
|
|
4769
|
-
console.log('after assign incomingFromImage:', this.incomingFromImage);
|
|
4770
4777
|
}
|
|
4771
4778
|
else if (snapshot?.data?.content == "Missed Call" || snapshot?.data?.data?.status == "rejected" || snapshot?.data?.data?.status == "accepted") {
|
|
4772
4779
|
let index = this.notificationCallList.findIndex((call) => call?.participantId === snapshot?.data?.data?.recordId || call?.participantId === snapshot?.data?.data?.participantId);
|