@vgroup/dialbox 0.5.12 → 0.5.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.
|
@@ -3792,7 +3792,7 @@ class DialboxComponent {
|
|
|
3792
3792
|
this.registerDragElement();
|
|
3793
3793
|
}
|
|
3794
3794
|
ngOnChanges(changes) {
|
|
3795
|
-
var _a, _b, _c, _d, _e;
|
|
3795
|
+
var _a, _b, _c, _d, _e, _f;
|
|
3796
3796
|
if (((_a = changes['incomingCallnotification']) === null || _a === void 0 ? void 0 : _a.currentValue) && this.incomingCallnotification) {
|
|
3797
3797
|
this.isIncomingCallnotification = true;
|
|
3798
3798
|
// let payload = {
|
|
@@ -3806,15 +3806,18 @@ class DialboxComponent {
|
|
|
3806
3806
|
console.log(',,,,,', this.incomingCallnotification);
|
|
3807
3807
|
if (this.incomingCallnotification.data.content == "IncomingCall") {
|
|
3808
3808
|
let callerInfo;
|
|
3809
|
-
|
|
3810
|
-
|
|
3811
|
-
|
|
3812
|
-
|
|
3813
|
-
|
|
3814
|
-
|
|
3815
|
-
|
|
3816
|
-
|
|
3817
|
-
|
|
3809
|
+
let numberList = this.callerIdList.map((res) => res.number);
|
|
3810
|
+
if (!numberList.includes((_b = this.incomingCallnotification.data.data) === null || _b === void 0 ? void 0 : _b.fromNumber)) {
|
|
3811
|
+
if (((_c = this.incomingCallnotification.data.data) === null || _c === void 0 ? void 0 : _c.c2cBusiness) == 'false') {
|
|
3812
|
+
this.extensionService.getUserInformation((_d = this.incomingCallnotification.data.data) === null || _d === void 0 ? void 0 : _d.participantId).subscribe((resInfo) => {
|
|
3813
|
+
console.log('uesrInfo', resInfo);
|
|
3814
|
+
callerInfo = resInfo.c2cInformation;
|
|
3815
|
+
this.incomingCallNotification(callerInfo);
|
|
3816
|
+
});
|
|
3817
|
+
}
|
|
3818
|
+
else {
|
|
3819
|
+
this.incomingCallNotification({});
|
|
3820
|
+
}
|
|
3818
3821
|
}
|
|
3819
3822
|
}
|
|
3820
3823
|
else if (this.incomingCallnotification.data.content == "Missed Call") {
|
|
@@ -3841,10 +3844,10 @@ class DialboxComponent {
|
|
|
3841
3844
|
this.twilioService.deviceId = changes['deviceId'].currentValue;
|
|
3842
3845
|
console.log('Set deviceId in localStorage:', changes['deviceId'].currentValue);
|
|
3843
3846
|
}
|
|
3844
|
-
if (((
|
|
3847
|
+
if (((_e = changes['userId']) === null || _e === void 0 ? void 0 : _e.currentValue) && this.userId) {
|
|
3845
3848
|
this.extensionService.userId = this.userId;
|
|
3846
3849
|
}
|
|
3847
|
-
if (((
|
|
3850
|
+
if (((_f = changes['contactInfo']) === null || _f === void 0 ? void 0 : _f.currentValue) && this.contactInfo) {
|
|
3848
3851
|
let contact = this.contactInfo;
|
|
3849
3852
|
console.log('contactInfo', contact);
|
|
3850
3853
|
if (contact.number) {
|