@vgroup/dialbox 0.5.11 → 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.
- package/esm2020/lib/components/call-progress/call-progress.component.mjs +4 -4
- package/esm2020/lib/dialbox.component.mjs +13 -10
- package/fesm2015/vgroup-dialbox.mjs +18 -15
- package/fesm2015/vgroup-dialbox.mjs.map +1 -1
- package/fesm2020/vgroup-dialbox.mjs +15 -12
- package/fesm2020/vgroup-dialbox.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -1937,15 +1937,15 @@ class CallProgressComponent {
|
|
|
1937
1937
|
this.isRinging = false;
|
|
1938
1938
|
this.isConcurrentIncoming = false;
|
|
1939
1939
|
this.incomingCallDiv = false;
|
|
1940
|
-
this.call.disconnect();
|
|
1941
|
-
this.cdr.detectChanges();
|
|
1942
1940
|
this.currentCallList = [];
|
|
1943
1941
|
this.currentCall = {};
|
|
1944
1942
|
this.isRinging = false;
|
|
1945
1943
|
this.isCallInProgress = false;
|
|
1946
|
-
// this.twilioService.device.disconnectAll()
|
|
1947
1944
|
this.isConferenceCallHold = false;
|
|
1948
1945
|
this.stopTimer();
|
|
1946
|
+
this.call.disconnect();
|
|
1947
|
+
this.cdr.detectChanges();
|
|
1948
|
+
// this.twilioService.device.disconnectAll()
|
|
1949
1949
|
this.endCallEvent.emit();
|
|
1950
1950
|
}
|
|
1951
1951
|
}
|
|
@@ -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) {
|