@vgroup/dialbox 0.3.93 → 0.3.95

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.
@@ -1761,6 +1761,7 @@ class CallProgressComponent {
1761
1761
  this.contacts = [];
1762
1762
  this.currentCallList = [];
1763
1763
  this.isClickExpand = false;
1764
+ this.isCurrentIncomingCallList = [];
1764
1765
  this.isMinimised = false;
1765
1766
  console.log('Call Progress Component');
1766
1767
  this.call = this.twilioService.device;
@@ -1822,7 +1823,7 @@ class CallProgressComponent {
1822
1823
  isHold: res.isHold,
1823
1824
  isMute: false,
1824
1825
  isConference: res.isConference,
1825
- isAcceptCall: this.getStatus(res),
1826
+ isAcceptCall: res.direction == "incoming-call" ? this.getStatus(res) : true,
1826
1827
  dial: true,
1827
1828
  phone: res.direction == "incoming-call" ? res?.from : res?.to,
1828
1829
  participantId: res.id,
@@ -1874,7 +1875,7 @@ class CallProgressComponent {
1874
1875
  isHold: res.isHold,
1875
1876
  isMute: false,
1876
1877
  isConference: res.isConference,
1877
- isAcceptCall: this.getStatus(res),
1878
+ isAcceptCall: res.direction == "incoming-call" ? this.getStatus(res) : true,
1878
1879
  dial: true,
1879
1880
  phone: res.direction == "incoming-call" ? res?.from : res?.to,
1880
1881
  participantId: res.id,
@@ -1890,7 +1891,7 @@ class CallProgressComponent {
1890
1891
  isHold: res.isHold,
1891
1892
  isMute: false,
1892
1893
  isConference: res.isConference,
1893
- isAcceptCall: this.getStatus(res),
1894
+ isAcceptCall: res.direction == "incoming-call" ? this.getStatus(res) : true,
1894
1895
  dial: true,
1895
1896
  phone: res.direction == "incoming-call" ? res?.from : res?.to,
1896
1897
  participantId: res.id,
@@ -1922,11 +1923,11 @@ class CallProgressComponent {
1922
1923
  }
1923
1924
  }
1924
1925
  getStatus(res) {
1925
- const statusList = ["answered", "participant-hold", "participant-mute", "participant-join", "queued", "in-progress", "initiated", 'ringing'];
1926
- if (statusList.includes(res.status) && !res.isIncomingCall) {
1926
+ const statusList = ["answered", "participant-hold", "participant-mute", "participant-join", "queued", "in-progress", "initiated", 'ringing', '"connected"'];
1927
+ if (statusList.includes(res.status) && res.direction != "incoming-call") {
1927
1928
  return true;
1928
1929
  }
1929
- else if (res.isIncomingCall) {
1930
+ else if (res.direction == "incoming-call") {
1930
1931
  return this.isCurrentIncomingCallList.includes(res.participantId);
1931
1932
  }
1932
1933
  else {
@@ -2291,7 +2292,7 @@ class CallProgressComponent {
2291
2292
  }
2292
2293
  toggleMute(isConference) {
2293
2294
  this.isMute = !this.isMute;
2294
- this.call?.mute(this.isMute);
2295
+ // this.call?.mute(this.isMute);
2295
2296
  if (isConference) {
2296
2297
  this.onMuteParticipant({
2297
2298
  participantId: this.currentCall?.participantId,