@vgroup/dialbox 0.6.10 → 0.6.12
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 +2 -1
- package/esm2020/lib/dialbox.component.mjs +4 -4
- package/fesm2015/vgroup-dialbox.mjs +4 -3
- package/fesm2015/vgroup-dialbox.mjs.map +1 -1
- package/fesm2020/vgroup-dialbox.mjs +4 -3
- package/fesm2020/vgroup-dialbox.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -1995,6 +1995,7 @@ class CallProgressComponent {
|
|
|
1995
1995
|
this.incomeingCallSocketService.pause();
|
|
1996
1996
|
}
|
|
1997
1997
|
this.isRinging = false;
|
|
1998
|
+
this.isClickExpand = false;
|
|
1998
1999
|
this.isCallInProgress = false;
|
|
1999
2000
|
this.isConferenceCallHold = false;
|
|
2000
2001
|
this.call.disconnect();
|
|
@@ -3686,7 +3687,7 @@ class DialboxComponent {
|
|
|
3686
3687
|
ngOnChanges(changes) {
|
|
3687
3688
|
if (changes['incomingCallnotification']?.currentValue && this.incomingCallnotification) {
|
|
3688
3689
|
this.isIncomingCallnotification = true;
|
|
3689
|
-
if (this.incomingCallnotification.data.content == "IncomingCall" && this.incomingCallnotification.data.data.status != "rejected") {
|
|
3690
|
+
if (this.incomingCallnotification.data.content == "IncomingCall" && this.incomingCallnotification.data.data.status != "rejected" && this.incomingCallnotification.data.data.status != "accepted") {
|
|
3690
3691
|
let callerInfo;
|
|
3691
3692
|
let numberList = this.callerIdList.map((res) => res.number);
|
|
3692
3693
|
if (!numberList.includes(this.incomingCallnotification.data.data?.fromNumber)) {
|
|
@@ -3702,7 +3703,7 @@ class DialboxComponent {
|
|
|
3702
3703
|
}
|
|
3703
3704
|
}
|
|
3704
3705
|
else if (this.incomingCallnotification.data.content == "Missed Call") {
|
|
3705
|
-
let index = this.notificationCallList.findIndex((call) => call.participantId === this.incomingCallnotification.data.data?.recordId);
|
|
3706
|
+
let index = this.notificationCallList.findIndex((call) => call.participantId === this.incomingCallnotification.data.data?.recordId || call.participantId === this.incomingCallnotification.data?.recordId || call.participantId === this.incomingCallnotification.data.data?.participantId);
|
|
3706
3707
|
if (index > -1) {
|
|
3707
3708
|
this.notificationCallList.splice(index, 1);
|
|
3708
3709
|
let incomingCallIndex = this.incomingCallsList.findIndex((call) => call.participantId === this.incomingCallnotification.data.data?.recordId);
|
|
@@ -3910,7 +3911,7 @@ class DialboxComponent {
|
|
|
3910
3911
|
isIncomingCall: true,
|
|
3911
3912
|
participantId: this.incomingCallnotification.data.data?.participantId,
|
|
3912
3913
|
participants: [
|
|
3913
|
-
{ direction: "incoming-call", businessNumber: this.incomingCallnotification.data.data?.c2cBusiness, img: this.incomingCallnotification.data.data?.fromImage || this.incomingCallnotification.data.data?.image || 'assets/images/user.jpg', isIncomingCall: true, isHold: false, isConference: false, isAcceptCall: false, dial: true, phone: this.incomingCallnotification.data.data?.fromNumber, to: this.incomingCallnotification.data.data?.toNumber,
|
|
3914
|
+
{ direction: "incoming-call", businessNumber: this.incomingCallnotification.data.data?.c2cBusiness == 'true' ? true : false, img: this.incomingCallnotification.data.data?.fromImage || this.incomingCallnotification.data.data?.image || 'assets/images/user.jpg', isIncomingCall: true, isHold: false, isConference: false, isAcceptCall: false, dial: true, phone: this.incomingCallnotification.data.data?.fromNumber, to: this.incomingCallnotification.data.data?.toNumber,
|
|
3914
3915
|
from: this.incomingCallnotification.data.data?.fromNumber, fromName: this.incomingCallnotification.data.data?.fromName, participantId: this.incomingCallnotification.data.data?.participantId, name: this.incomingCallnotification.data.data?.fromName, time: '', id: this.incomingCallnotification.data.data?.participantId }
|
|
3915
3916
|
],
|
|
3916
3917
|
};
|