@vgroup/dialbox 0.4.188 → 0.4.190
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.
|
@@ -3788,7 +3788,7 @@ class DialboxComponent {
|
|
|
3788
3788
|
this.registerDragElement();
|
|
3789
3789
|
}
|
|
3790
3790
|
ngOnChanges(changes) {
|
|
3791
|
-
var _a, _b, _c, _d, _e, _f;
|
|
3791
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
3792
3792
|
if (changes['incomingCallnotification'].currentValue && this.incomingCallnotification) {
|
|
3793
3793
|
this.isIncomingCallnotification = true;
|
|
3794
3794
|
// let payload = {
|
|
@@ -3801,18 +3801,23 @@ class DialboxComponent {
|
|
|
3801
3801
|
// }
|
|
3802
3802
|
console.log(',,,,,', this.incomingCallnotification);
|
|
3803
3803
|
if (this.incomingCallnotification.data.content == "IncomingCall") {
|
|
3804
|
+
if (!((_a = this.incomingCallnotification.data.data) === null || _a === void 0 ? void 0 : _a.c2cBusiness)) {
|
|
3805
|
+
this.extensionService.getUserInformation((_b = this.incomingCallnotification.data.data) === null || _b === void 0 ? void 0 : _b.participantId).subscribe((resInfo) => {
|
|
3806
|
+
console.log('uesrInfo', resInfo);
|
|
3807
|
+
});
|
|
3808
|
+
}
|
|
3804
3809
|
let incomingCall = {
|
|
3805
3810
|
conferenceId: 'no',
|
|
3806
3811
|
isActive: true,
|
|
3807
3812
|
isIncomingCall: true,
|
|
3808
|
-
participantId: (
|
|
3813
|
+
participantId: (_c = this.incomingCallnotification.data.data) === null || _c === void 0 ? void 0 : _c.participantId,
|
|
3809
3814
|
participants: [
|
|
3810
|
-
{ direction: "incoming-call", img: 'assets/images/user.jpg', isIncomingCall: true, isHold: false, isConference: false, isAcceptCall: false, dial: true, phone: (
|
|
3815
|
+
{ direction: "incoming-call", img: 'assets/images/user.jpg', isIncomingCall: true, isHold: false, isConference: false, isAcceptCall: false, dial: true, phone: (_d = this.incomingCallnotification.data.data) === null || _d === void 0 ? void 0 : _d.fromNumber, participantId: (_e = this.incomingCallnotification.data.data) === null || _e === void 0 ? void 0 : _e.participantId, name: (_f = this.incomingCallnotification.data.data) === null || _f === void 0 ? void 0 : _f.fromName, time: '', id: (_g = this.incomingCallnotification.data.data) === null || _g === void 0 ? void 0 : _g.participantId }
|
|
3811
3816
|
]
|
|
3812
3817
|
};
|
|
3813
3818
|
this.incomingCallsList.push(incomingCall);
|
|
3814
3819
|
this.notificationCallList.push(incomingCall);
|
|
3815
|
-
if ((
|
|
3820
|
+
if ((_h = this.incomingCallnotification.data.data) === null || _h === void 0 ? void 0 : _h.participantId) {
|
|
3816
3821
|
this.isCallInProgress = true;
|
|
3817
3822
|
}
|
|
3818
3823
|
}
|