@vgroup/dialbox 0.3.21 → 0.3.22
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.
|
@@ -2247,8 +2247,10 @@ class CallProgressComponent {
|
|
|
2247
2247
|
this.onholdOrUnholdParticipant({
|
|
2248
2248
|
participantId: c.participantId,
|
|
2249
2249
|
conferenceId: this.conferenceId,
|
|
2250
|
-
hold:
|
|
2250
|
+
hold: !c.hold
|
|
2251
2251
|
});
|
|
2252
|
+
c.hold = !c.hold;
|
|
2253
|
+
this.cdr.detectChanges();
|
|
2252
2254
|
}
|
|
2253
2255
|
onEndCall(c, isAllCallEnd) {
|
|
2254
2256
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2561,7 +2563,7 @@ class CallProgressComponent {
|
|
|
2561
2563
|
// ...this.callData,
|
|
2562
2564
|
phone: phoneNumber,
|
|
2563
2565
|
displayNum: phoneNumber,
|
|
2564
|
-
name:
|
|
2566
|
+
name: (contact === null || contact === void 0 ? void 0 : contact.name) || phoneNumber,
|
|
2565
2567
|
img: (contact === null || contact === void 0 ? void 0 : contact.img) || 'assets/images/user.jpg',
|
|
2566
2568
|
participantId: data === null || data === void 0 ? void 0 : data.participantId,
|
|
2567
2569
|
from: (_e = this.selectedCallerId) === null || _e === void 0 ? void 0 : _e.number,
|
|
@@ -2715,17 +2717,27 @@ class CallProgressComponent {
|
|
|
2715
2717
|
});
|
|
2716
2718
|
}
|
|
2717
2719
|
mergeCalls() {
|
|
2718
|
-
var _a, _b;
|
|
2719
2720
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2720
2721
|
// Merge functionality - unmute both calls for conference
|
|
2721
2722
|
if (this.heldCall && this.call) {
|
|
2722
|
-
|
|
2723
|
-
|
|
2724
|
-
|
|
2725
|
-
|
|
2726
|
-
|
|
2727
|
-
|
|
2728
|
-
|
|
2723
|
+
this.currentCallList.forEach((c) => __awaiter(this, void 0, void 0, function* () {
|
|
2724
|
+
if ((c === null || c === void 0 ? void 0 : c.participantId) && (c === null || c === void 0 ? void 0 : c.isHold)) {
|
|
2725
|
+
c.isHold = false;
|
|
2726
|
+
yield this.onholdOrUnholdParticipant({
|
|
2727
|
+
participantId: c === null || c === void 0 ? void 0 : c.participantId,
|
|
2728
|
+
conferenceId: this.conferenceId,
|
|
2729
|
+
hold: false
|
|
2730
|
+
});
|
|
2731
|
+
}
|
|
2732
|
+
c.isConference = true;
|
|
2733
|
+
}));
|
|
2734
|
+
// await this.onholdOrUnholdParticipant({
|
|
2735
|
+
// participantId: this.heldCall?.callInfo?.participantId,
|
|
2736
|
+
// conferenceId: this.conferenceId,
|
|
2737
|
+
// hold: false
|
|
2738
|
+
// });
|
|
2739
|
+
// this.heldCall.mute(false);
|
|
2740
|
+
// this.call.mute(false);
|
|
2729
2741
|
this.isCallOnHold = false;
|
|
2730
2742
|
this.isConference = true;
|
|
2731
2743
|
this.cdr.detectChanges();
|