@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.
@@ -1816,6 +1816,8 @@ class CallProgressComponent {
1816
1816
  this.keypadVal = keypad;
1817
1817
  this.callInput = '';
1818
1818
  this.isMute = false;
1819
+ this.pendingMuteUpdate = false;
1820
+ this.intendedMuteState = null;
1819
1821
  this.disbaleEndCallBtn = true;
1820
1822
  this.showClearBtn = false;
1821
1823
  this.isCollops = false;
@@ -1932,7 +1934,15 @@ class CallProgressComponent {
1932
1934
  this.newIncomingCallsList.forEach((callInfo, i) => {
1933
1935
  this.conferenceId = i == 0 ? this.newIncomingCallsList[i].conferenceId : this.conferenceId;
1934
1936
  let ourNumberInfo = this.newIncomingCallsList[i].participants.find((resData) => ((this.deviceNumberList.includes(resData?.from) && resData?.direction == 'outgoing-call') || (this.deviceNumberList.includes(resData?.to) && resData?.direction == 'incoming-call')) && !resData?.isLeft);
1935
- this.isMute = !ourNumberInfo?.isHold ? ourNumberInfo?.isMute : this.isMute;
1937
+ if (!this.pendingMuteUpdate) {
1938
+ this.isMute = !ourNumberInfo?.isHold ? ourNumberInfo?.isMute : this.isMute;
1939
+ }
1940
+ else if (ourNumberInfo?.isMute === this.intendedMuteState) {
1941
+ this.isMute = ourNumberInfo?.isMute;
1942
+ this.pendingMuteUpdate = false;
1943
+ this.intendedMuteState = null;
1944
+ }
1945
+ //this.isMute = !ourNumberInfo?.isHold ? ourNumberInfo?.isMute : this.isMute;
1936
1946
  let currentcallParticipantListID = this.currentCallList.filter((res) => res.conferenceId == this.newIncomingCallsList[i].conferenceId).map((res) => res.participantId);
1937
1947
  let updatedList = this.newIncomingCallsList[i].participants.map((res) => res.id);
1938
1948
  currentcallParticipantListID.forEach((participantId) => {
@@ -2729,6 +2739,8 @@ class CallProgressComponent {
2729
2739
  }
2730
2740
  async toggleMute(isConference) {
2731
2741
  this.isMute = !this.isMute;
2742
+ this.pendingMuteUpdate = true;
2743
+ this.intendedMuteState = this.isMute;
2732
2744
  this.call?.mute(this.isMute);
2733
2745
  const currentConferenceCallInfo = this.getCurrentCallInfo();
2734
2746
  this.onMuteParticipant({