@vgroup/dialbox 0.6.11 → 0.6.13
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.
|
@@ -3687,7 +3687,7 @@ class DialboxComponent {
|
|
|
3687
3687
|
ngOnChanges(changes) {
|
|
3688
3688
|
if (changes['incomingCallnotification']?.currentValue && this.incomingCallnotification) {
|
|
3689
3689
|
this.isIncomingCallnotification = true;
|
|
3690
|
-
if (this.incomingCallnotification.data.content == "IncomingCall" && this.incomingCallnotification.data.data.status != "
|
|
3690
|
+
if (this.incomingCallnotification.data.content == "IncomingCall" && this.incomingCallnotification.data.status != "rejected" && this.incomingCallnotification.data.data.status != "accepted") {
|
|
3691
3691
|
let callerInfo;
|
|
3692
3692
|
let numberList = this.callerIdList.map((res) => res.number);
|
|
3693
3693
|
if (!numberList.includes(this.incomingCallnotification.data.data?.fromNumber)) {
|
|
@@ -3702,11 +3702,11 @@ class DialboxComponent {
|
|
|
3702
3702
|
}
|
|
3703
3703
|
}
|
|
3704
3704
|
}
|
|
3705
|
-
else if (this.incomingCallnotification.data.content == "Missed Call") {
|
|
3706
|
-
let index = this.notificationCallList.findIndex((call) => call.participantId === this.incomingCallnotification.data.data?.recordId);
|
|
3705
|
+
else if (this.incomingCallnotification.data.content == "Missed Call" || this.incomingCallnotification.data.status != "rejected" || this.incomingCallnotification.data.data.status != "accepted") {
|
|
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);
|
|
3707
3707
|
if (index > -1) {
|
|
3708
3708
|
this.notificationCallList.splice(index, 1);
|
|
3709
|
-
let incomingCallIndex = this.incomingCallsList.findIndex((call) => call.participantId === this.incomingCallnotification.data.data?.recordId);
|
|
3709
|
+
let incomingCallIndex = this.incomingCallsList.findIndex((call) => call.participantId === this.incomingCallnotification.data.data?.recordId || call.participantId === this.incomingCallnotification.data.data?.participantId);
|
|
3710
3710
|
if (incomingCallIndex > -1) {
|
|
3711
3711
|
this.incomingCallsList.splice(incomingCallIndex, 1);
|
|
3712
3712
|
this.incomeingCallSocketService.pause();
|
|
@@ -3911,7 +3911,7 @@ class DialboxComponent {
|
|
|
3911
3911
|
isIncomingCall: true,
|
|
3912
3912
|
participantId: this.incomingCallnotification.data.data?.participantId,
|
|
3913
3913
|
participants: [
|
|
3914
|
-
{ 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,
|
|
3915
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 }
|
|
3916
3916
|
],
|
|
3917
3917
|
};
|