@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
|
@@ -1947,6 +1947,7 @@ class CallProgressComponent {
|
|
|
1947
1947
|
this.incomeingCallSocketService.pause();
|
|
1948
1948
|
}
|
|
1949
1949
|
this.isRinging = false;
|
|
1950
|
+
this.isClickExpand = false;
|
|
1950
1951
|
this.isCallInProgress = false;
|
|
1951
1952
|
this.isConferenceCallHold = false;
|
|
1952
1953
|
this.call.disconnect();
|
|
@@ -3661,7 +3662,7 @@ class DialboxComponent {
|
|
|
3661
3662
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
3662
3663
|
if (((_a = changes['incomingCallnotification']) === null || _a === void 0 ? void 0 : _a.currentValue) && this.incomingCallnotification) {
|
|
3663
3664
|
this.isIncomingCallnotification = true;
|
|
3664
|
-
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") {
|
|
3665
3666
|
let callerInfo;
|
|
3666
3667
|
let numberList = this.callerIdList.map((res) => res.number);
|
|
3667
3668
|
if (!numberList.includes((_b = this.incomingCallnotification.data.data) === null || _b === void 0 ? void 0 : _b.fromNumber)) {
|
|
@@ -3677,7 +3678,7 @@ class DialboxComponent {
|
|
|
3677
3678
|
}
|
|
3678
3679
|
}
|
|
3679
3680
|
else if (this.incomingCallnotification.data.content == "Missed Call") {
|
|
3680
|
-
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); });
|
|
3681
3682
|
if (index > -1) {
|
|
3682
3683
|
this.notificationCallList.splice(index, 1);
|
|
3683
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); });
|
|
@@ -3887,7 +3888,7 @@ class DialboxComponent {
|
|
|
3887
3888
|
isIncomingCall: true,
|
|
3888
3889
|
participantId: (_a = this.incomingCallnotification.data.data) === null || _a === void 0 ? void 0 : _a.participantId,
|
|
3889
3890
|
participants: [
|
|
3890
|
-
{ 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,
|
|
3891
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 }
|
|
3892
3893
|
],
|
|
3893
3894
|
};
|