@vgroup/dialbox 0.6.12 → 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.
|
|
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") {
|
|
3705
|
+
else if (this.incomingCallnotification.data.content == "Missed Call" || this.incomingCallnotification.data.status != "rejected" || this.incomingCallnotification.data.data.status != "accepted") {
|
|
3706
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();
|