@vgroup/dialbox 0.4.187 → 0.4.189
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 +5 -1
- package/esm2020/lib/dialbox.component.mjs +6 -1
- package/fesm2015/vgroup-dialbox.mjs +13 -4
- package/fesm2015/vgroup-dialbox.mjs.map +1 -1
- package/fesm2020/vgroup-dialbox.mjs +9 -0
- package/fesm2020/vgroup-dialbox.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -2143,6 +2143,10 @@ class CallProgressComponent {
|
|
|
2143
2143
|
onEndCall(c, isAllCallEnd) {
|
|
2144
2144
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2145
2145
|
console.log(c, 'dsdsdsdsdsdsadsa');
|
|
2146
|
+
if (c.isAcceptCall) {
|
|
2147
|
+
this.currentCall = this.currentCall.filter((res) => res.id !== c.id);
|
|
2148
|
+
return;
|
|
2149
|
+
}
|
|
2146
2150
|
let participantId = isAllCallEnd ? 'all' : c.participantId || c.participantId;
|
|
2147
2151
|
let conferenceId = isAllCallEnd ? 'all' : c.conferenceId || this.currentCall.conferenceId;
|
|
2148
2152
|
let res = yield this.getRemoveParticipants(participantId, conferenceId);
|
|
@@ -3784,7 +3788,7 @@ class DialboxComponent {
|
|
|
3784
3788
|
this.registerDragElement();
|
|
3785
3789
|
}
|
|
3786
3790
|
ngOnChanges(changes) {
|
|
3787
|
-
var _a, _b, _c, _d, _e, _f;
|
|
3791
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
3788
3792
|
if (changes['incomingCallnotification'].currentValue && this.incomingCallnotification) {
|
|
3789
3793
|
this.isIncomingCallnotification = true;
|
|
3790
3794
|
// let payload = {
|
|
@@ -3797,18 +3801,23 @@ class DialboxComponent {
|
|
|
3797
3801
|
// }
|
|
3798
3802
|
console.log(',,,,,', this.incomingCallnotification);
|
|
3799
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
|
+
}
|
|
3800
3809
|
let incomingCall = {
|
|
3801
3810
|
conferenceId: 'no',
|
|
3802
3811
|
isActive: true,
|
|
3803
3812
|
isIncomingCall: true,
|
|
3804
|
-
participantId: (
|
|
3813
|
+
participantId: (_c = this.incomingCallnotification.data.data) === null || _c === void 0 ? void 0 : _c.participantId,
|
|
3805
3814
|
participants: [
|
|
3806
|
-
{ 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 }
|
|
3807
3816
|
]
|
|
3808
3817
|
};
|
|
3809
3818
|
this.incomingCallsList.push(incomingCall);
|
|
3810
3819
|
this.notificationCallList.push(incomingCall);
|
|
3811
|
-
if ((
|
|
3820
|
+
if ((_h = this.incomingCallnotification.data.data) === null || _h === void 0 ? void 0 : _h.participantId) {
|
|
3812
3821
|
this.isCallInProgress = true;
|
|
3813
3822
|
}
|
|
3814
3823
|
}
|