@vgroup/dialbox 0.7.2 → 0.7.3
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 +14 -2
- package/fesm2015/vgroup-dialbox.mjs +13 -1
- package/fesm2015/vgroup-dialbox.mjs.map +1 -1
- package/fesm2020/vgroup-dialbox.mjs +13 -1
- package/fesm2020/vgroup-dialbox.mjs.map +1 -1
- package/lib/components/call-progress/call-progress.component.d.ts +2 -0
- package/package.json +1 -1
|
@@ -1822,6 +1822,8 @@ class CallProgressComponent {
|
|
|
1822
1822
|
this.keypadVal = keypad;
|
|
1823
1823
|
this.callInput = '';
|
|
1824
1824
|
this.isMute = false;
|
|
1825
|
+
this.pendingMuteUpdate = false;
|
|
1826
|
+
this.intendedMuteState = null;
|
|
1825
1827
|
this.disbaleEndCallBtn = true;
|
|
1826
1828
|
this.showClearBtn = false;
|
|
1827
1829
|
this.isCollops = false;
|
|
@@ -1926,7 +1928,15 @@ class CallProgressComponent {
|
|
|
1926
1928
|
var _a;
|
|
1927
1929
|
this.conferenceId = i == 0 ? this.newIncomingCallsList[i].conferenceId : this.conferenceId;
|
|
1928
1930
|
let ourNumberInfo = this.newIncomingCallsList[i].participants.find((resData) => ((this.deviceNumberList.includes(resData === null || resData === void 0 ? void 0 : resData.from) && (resData === null || resData === void 0 ? void 0 : resData.direction) == 'outgoing-call') || (this.deviceNumberList.includes(resData === null || resData === void 0 ? void 0 : resData.to) && (resData === null || resData === void 0 ? void 0 : resData.direction) == 'incoming-call')) && !(resData === null || resData === void 0 ? void 0 : resData.isLeft));
|
|
1929
|
-
|
|
1931
|
+
if (!this.pendingMuteUpdate) {
|
|
1932
|
+
this.isMute = !(ourNumberInfo === null || ourNumberInfo === void 0 ? void 0 : ourNumberInfo.isHold) ? ourNumberInfo === null || ourNumberInfo === void 0 ? void 0 : ourNumberInfo.isMute : this.isMute;
|
|
1933
|
+
}
|
|
1934
|
+
else if ((ourNumberInfo === null || ourNumberInfo === void 0 ? void 0 : ourNumberInfo.isMute) === this.intendedMuteState) {
|
|
1935
|
+
this.isMute = ourNumberInfo === null || ourNumberInfo === void 0 ? void 0 : ourNumberInfo.isMute;
|
|
1936
|
+
this.pendingMuteUpdate = false;
|
|
1937
|
+
this.intendedMuteState = null;
|
|
1938
|
+
}
|
|
1939
|
+
//this.isMute = !ourNumberInfo?.isHold ? ourNumberInfo?.isMute : this.isMute;
|
|
1930
1940
|
let currentcallParticipantListID = this.currentCallList.filter((res) => res.conferenceId == this.newIncomingCallsList[i].conferenceId).map((res) => res.participantId);
|
|
1931
1941
|
let updatedList = this.newIncomingCallsList[i].participants.map((res) => res.id);
|
|
1932
1942
|
currentcallParticipantListID.forEach((participantId) => {
|
|
@@ -2715,6 +2725,8 @@ class CallProgressComponent {
|
|
|
2715
2725
|
var _a;
|
|
2716
2726
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2717
2727
|
this.isMute = !this.isMute;
|
|
2728
|
+
this.pendingMuteUpdate = true;
|
|
2729
|
+
this.intendedMuteState = this.isMute;
|
|
2718
2730
|
(_a = this.call) === null || _a === void 0 ? void 0 : _a.mute(this.isMute);
|
|
2719
2731
|
const currentConferenceCallInfo = this.getCurrentCallInfo();
|
|
2720
2732
|
this.onMuteParticipant({
|