@vgroup/dialbox 0.5.4 → 0.5.5
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,8 +3792,8 @@ class DialboxComponent {
|
|
|
3792
3792
|
this.registerDragElement();
|
|
3793
3793
|
}
|
|
3794
3794
|
ngOnChanges(changes) {
|
|
3795
|
-
var _a, _b;
|
|
3796
|
-
if (changes['incomingCallnotification'].currentValue && this.incomingCallnotification) {
|
|
3795
|
+
var _a, _b, _c, _d, _e;
|
|
3796
|
+
if (((_a = changes['incomingCallnotification']) === null || _a === void 0 ? void 0 : _a.currentValue) && this.incomingCallnotification) {
|
|
3797
3797
|
this.isIncomingCallnotification = true;
|
|
3798
3798
|
// let payload = {
|
|
3799
3799
|
// recordId: this.incomingCallnotification.data.data.participantId,
|
|
@@ -3806,8 +3806,8 @@ class DialboxComponent {
|
|
|
3806
3806
|
console.log(',,,,,', this.incomingCallnotification);
|
|
3807
3807
|
if (this.incomingCallnotification.data.content == "IncomingCall") {
|
|
3808
3808
|
let callerInfo;
|
|
3809
|
-
if (((
|
|
3810
|
-
this.extensionService.getUserInformation((
|
|
3809
|
+
if (((_b = this.incomingCallnotification.data.data) === null || _b === void 0 ? void 0 : _b.c2cBusiness) == 'false') {
|
|
3810
|
+
this.extensionService.getUserInformation((_c = this.incomingCallnotification.data.data) === null || _c === void 0 ? void 0 : _c.participantId).subscribe((resInfo) => {
|
|
3811
3811
|
console.log('uesrInfo', resInfo);
|
|
3812
3812
|
callerInfo = resInfo.c2cInformation;
|
|
3813
3813
|
this.incomingCallNotification(callerInfo);
|
|
@@ -3840,10 +3840,10 @@ class DialboxComponent {
|
|
|
3840
3840
|
this.twilioService.deviceId = changes['deviceId'].currentValue;
|
|
3841
3841
|
console.log('Set deviceId in localStorage:', changes['deviceId'].currentValue);
|
|
3842
3842
|
}
|
|
3843
|
-
if (changes['userId'].currentValue && this.userId) {
|
|
3843
|
+
if (((_d = changes['userId']) === null || _d === void 0 ? void 0 : _d.currentValue) && this.userId) {
|
|
3844
3844
|
this.extensionService.userId = this.userId;
|
|
3845
3845
|
}
|
|
3846
|
-
if (changes['contactInfo'] && this.contactInfo) {
|
|
3846
|
+
if (((_e = changes['contactInfo']) === null || _e === void 0 ? void 0 : _e.currentValue) && this.contactInfo) {
|
|
3847
3847
|
let contact = this.contactInfo;
|
|
3848
3848
|
console.log('contactInfo', contact);
|
|
3849
3849
|
if (contact.number) {
|