@vgroup/dialbox 0.3.8 → 0.3.10
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.
|
@@ -2510,7 +2510,7 @@ class CallProgressComponent {
|
|
|
2510
2510
|
this.allParticipentList = this.getAllParticipants(conferenceSId);
|
|
2511
2511
|
}
|
|
2512
2512
|
callContact(contact) {
|
|
2513
|
-
var _a, _b, _c, _d, _e
|
|
2513
|
+
var _a, _b, _c, _d, _e;
|
|
2514
2514
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2515
2515
|
console.log('Adding participant:', contact);
|
|
2516
2516
|
console.log('this.call', this.call);
|
|
@@ -2535,9 +2535,9 @@ class CallProgressComponent {
|
|
|
2535
2535
|
// Put current call on hold
|
|
2536
2536
|
this.heldCall = this.call;
|
|
2537
2537
|
this.isCallOnHold = true;
|
|
2538
|
-
this.heldCall.mute(true);
|
|
2538
|
+
// this.heldCall.mute(true);
|
|
2539
2539
|
this.heldCall['parameters']['caller_name'] = Object.assign({}, this.callData);
|
|
2540
|
-
this.call
|
|
2540
|
+
// this.call=null
|
|
2541
2541
|
// Close contacts panel and show ring animation
|
|
2542
2542
|
this.showContactsPanel = false;
|
|
2543
2543
|
this.showRingAnimation = true;
|
|
@@ -2551,13 +2551,11 @@ class CallProgressComponent {
|
|
|
2551
2551
|
displayNum: phoneNumber,
|
|
2552
2552
|
name: contactName || phoneNumber,
|
|
2553
2553
|
img: (contact === null || contact === void 0 ? void 0 : contact.img) || 'assets/images/user.jpg',
|
|
2554
|
-
participantId:
|
|
2555
|
-
from: (
|
|
2554
|
+
participantId: '',
|
|
2555
|
+
from: (_d = this.selectedCallerId) === null || _d === void 0 ? void 0 : _d.number,
|
|
2556
2556
|
isIncomingCall: false,
|
|
2557
2557
|
};
|
|
2558
|
-
|
|
2559
|
-
this.currentCallList.push(this.callData);
|
|
2560
|
-
this.call['callInfo'] = JSON.parse(JSON.stringify(this.callData));
|
|
2558
|
+
// this.call['callInfo'] = JSON.parse(JSON.stringify(this.callData));
|
|
2561
2559
|
this.cdr.detectChanges();
|
|
2562
2560
|
// Get the conference ID from the current call or use the stored one
|
|
2563
2561
|
const conferenceId = this.conferenceId;
|
|
@@ -2568,12 +2566,15 @@ class CallProgressComponent {
|
|
|
2568
2566
|
return;
|
|
2569
2567
|
}
|
|
2570
2568
|
// Add participant to the conference
|
|
2571
|
-
yield this.addParticipantToCall({
|
|
2572
|
-
from: (
|
|
2569
|
+
let data = yield this.addParticipantToCall({
|
|
2570
|
+
from: (_e = this.callData) === null || _e === void 0 ? void 0 : _e.from,
|
|
2573
2571
|
route: "OUTGOING",
|
|
2574
2572
|
participantNumber: phoneNumber,
|
|
2575
2573
|
conferenceId: conferenceId
|
|
2576
2574
|
});
|
|
2575
|
+
this.callData = Object.assign(Object.assign({}, this.callData), { participantId: data === null || data === void 0 ? void 0 : data.participantId });
|
|
2576
|
+
console.log(this.callData, 'this.callData');
|
|
2577
|
+
this.currentCallList.push(this.callData);
|
|
2577
2578
|
console.log("Participant added to conference:", phoneNumber);
|
|
2578
2579
|
this.showRingAnimation = false;
|
|
2579
2580
|
}
|