@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.
|
@@ -3662,7 +3662,7 @@ class DialboxComponent {
|
|
|
3662
3662
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
3663
3663
|
if (((_a = changes['incomingCallnotification']) === null || _a === void 0 ? void 0 : _a.currentValue) && this.incomingCallnotification) {
|
|
3664
3664
|
this.isIncomingCallnotification = true;
|
|
3665
|
-
if (this.incomingCallnotification.data.content == "IncomingCall" && this.incomingCallnotification.data.
|
|
3665
|
+
if (this.incomingCallnotification.data.content == "IncomingCall" && this.incomingCallnotification.data.status != "rejected" && this.incomingCallnotification.data.data.status != "accepted") {
|
|
3666
3666
|
let callerInfo;
|
|
3667
3667
|
let numberList = this.callerIdList.map((res) => res.number);
|
|
3668
3668
|
if (!numberList.includes((_b = this.incomingCallnotification.data.data) === null || _b === void 0 ? void 0 : _b.fromNumber)) {
|
|
@@ -3677,11 +3677,11 @@ class DialboxComponent {
|
|
|
3677
3677
|
}
|
|
3678
3678
|
}
|
|
3679
3679
|
}
|
|
3680
|
-
else if (this.incomingCallnotification.data.content == "Missed Call") {
|
|
3680
|
+
else if (this.incomingCallnotification.data.content == "Missed Call" || this.incomingCallnotification.data.status != "rejected" || this.incomingCallnotification.data.data.status != "accepted") {
|
|
3681
3681
|
let index = this.notificationCallList.findIndex((call) => { var _a, _b, _c; return call.participantId === ((_a = this.incomingCallnotification.data.data) === null || _a === void 0 ? void 0 : _a.recordId) || call.participantId === ((_b = this.incomingCallnotification.data) === null || _b === void 0 ? void 0 : _b.recordId) || call.participantId === ((_c = this.incomingCallnotification.data.data) === null || _c === void 0 ? void 0 : _c.participantId); });
|
|
3682
3682
|
if (index > -1) {
|
|
3683
3683
|
this.notificationCallList.splice(index, 1);
|
|
3684
|
-
let incomingCallIndex = this.incomingCallsList.findIndex((call) => { var _a; return call.participantId === ((_a = this.incomingCallnotification.data.data) === null || _a === void 0 ? void 0 : _a.recordId); });
|
|
3684
|
+
let incomingCallIndex = this.incomingCallsList.findIndex((call) => { var _a, _b; return call.participantId === ((_a = this.incomingCallnotification.data.data) === null || _a === void 0 ? void 0 : _a.recordId) || call.participantId === ((_b = this.incomingCallnotification.data.data) === null || _b === void 0 ? void 0 : _b.participantId); });
|
|
3685
3685
|
if (incomingCallIndex > -1) {
|
|
3686
3686
|
this.incomingCallsList.splice(incomingCallIndex, 1);
|
|
3687
3687
|
this.incomeingCallSocketService.pause();
|