@vgroup/dialbox 0.6.11 → 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.
|
@@ -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.data.status != "rejected") {
|
|
3665
|
+
if (this.incomingCallnotification.data.content == "IncomingCall" && this.incomingCallnotification.data.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)) {
|
|
@@ -3678,7 +3678,7 @@ class DialboxComponent {
|
|
|
3678
3678
|
}
|
|
3679
3679
|
}
|
|
3680
3680
|
else if (this.incomingCallnotification.data.content == "Missed Call") {
|
|
3681
|
-
let index = this.notificationCallList.findIndex((call) => { var _a; return call.participantId === ((_a = this.incomingCallnotification.data.data) === null || _a === void 0 ? void 0 : _a.recordId); });
|
|
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
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); });
|
|
@@ -3888,7 +3888,7 @@ class DialboxComponent {
|
|
|
3888
3888
|
isIncomingCall: true,
|
|
3889
3889
|
participantId: (_a = this.incomingCallnotification.data.data) === null || _a === void 0 ? void 0 : _a.participantId,
|
|
3890
3890
|
participants: [
|
|
3891
|
-
{ direction: "incoming-call", businessNumber: (_b = this.incomingCallnotification.data.data) === null || _b === void 0 ? void 0 : _b.c2cBusiness, img: ((_c = this.incomingCallnotification.data.data) === null || _c === void 0 ? void 0 : _c.fromImage) || ((_d = this.incomingCallnotification.data.data) === null || _d === void 0 ? void 0 : _d.image) || 'assets/images/user.jpg', isIncomingCall: true, isHold: false, isConference: false, isAcceptCall: false, dial: true, phone: (_e = this.incomingCallnotification.data.data) === null || _e === void 0 ? void 0 : _e.fromNumber, to: (_f = this.incomingCallnotification.data.data) === null || _f === void 0 ? void 0 : _f.toNumber,
|
|
3891
|
+
{ direction: "incoming-call", businessNumber: ((_b = this.incomingCallnotification.data.data) === null || _b === void 0 ? void 0 : _b.c2cBusiness) == 'true' ? true : false, img: ((_c = this.incomingCallnotification.data.data) === null || _c === void 0 ? void 0 : _c.fromImage) || ((_d = this.incomingCallnotification.data.data) === null || _d === void 0 ? void 0 : _d.image) || 'assets/images/user.jpg', isIncomingCall: true, isHold: false, isConference: false, isAcceptCall: false, dial: true, phone: (_e = this.incomingCallnotification.data.data) === null || _e === void 0 ? void 0 : _e.fromNumber, to: (_f = this.incomingCallnotification.data.data) === null || _f === void 0 ? void 0 : _f.toNumber,
|
|
3892
3892
|
from: (_g = this.incomingCallnotification.data.data) === null || _g === void 0 ? void 0 : _g.fromNumber, fromName: (_h = this.incomingCallnotification.data.data) === null || _h === void 0 ? void 0 : _h.fromName, participantId: (_j = this.incomingCallnotification.data.data) === null || _j === void 0 ? void 0 : _j.participantId, name: (_k = this.incomingCallnotification.data.data) === null || _k === void 0 ? void 0 : _k.fromName, time: '', id: (_l = this.incomingCallnotification.data.data) === null || _l === void 0 ? void 0 : _l.participantId }
|
|
3893
3893
|
],
|
|
3894
3894
|
};
|