@vgroup/dialbox 0.4.194 → 0.4.196
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.
|
@@ -3802,20 +3802,16 @@ class DialboxComponent {
|
|
|
3802
3802
|
// }
|
|
3803
3803
|
console.log(',,,,,', this.incomingCallnotification);
|
|
3804
3804
|
if (this.incomingCallnotification.data.content == "IncomingCall") {
|
|
3805
|
-
|
|
3805
|
+
let callerInfo;
|
|
3806
|
+
if (((_a = this.incomingCallnotification.data.data) === null || _a === void 0 ? void 0 : _a.c2cBusiness) == 'false') {
|
|
3806
3807
|
this.extensionService.getUserInformation((_b = this.incomingCallnotification.data.data) === null || _b === void 0 ? void 0 : _b.participantId).subscribe((resInfo) => {
|
|
3807
3808
|
console.log('uesrInfo', resInfo);
|
|
3809
|
+
callerInfo = resInfo;
|
|
3808
3810
|
});
|
|
3809
3811
|
}
|
|
3810
|
-
let incomingCall = {
|
|
3811
|
-
conferenceId: 'no',
|
|
3812
|
-
isActive: true,
|
|
3813
|
-
isIncomingCall: true,
|
|
3814
|
-
participantId: (_c = this.incomingCallnotification.data.data) === null || _c === void 0 ? void 0 : _c.participantId,
|
|
3815
|
-
participants: [
|
|
3812
|
+
let incomingCall = Object.assign({ conferenceId: 'no', isActive: true, isIncomingCall: true, participantId: (_c = this.incomingCallnotification.data.data) === null || _c === void 0 ? void 0 : _c.participantId, participants: [
|
|
3816
3813
|
{ 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 }
|
|
3817
|
-
]
|
|
3818
|
-
};
|
|
3814
|
+
] }, callerInfo);
|
|
3819
3815
|
this.incomingCallsList.push(incomingCall);
|
|
3820
3816
|
this.notificationCallList.push(incomingCall);
|
|
3821
3817
|
if ((_h = this.incomingCallnotification.data.data) === null || _h === void 0 ? void 0 : _h.participantId) {
|