@vgroup/dialbox 0.4.161 → 0.4.163

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.
@@ -1975,18 +1975,16 @@ class CallProgressComponent {
1975
1975
  }
1976
1976
  getStatus(res) {
1977
1977
  // const statusList = ["answered", "participant-hold", "participant-mute", "participant-join", "queued", "in-progress", "initiated", 'ringing', '"connected"'];
1978
- // if (statusList.includes(res.status) && res.direction != "incoming-call") {
1979
- // return true;
1980
- // } else if (res.direction == "incoming-call") {
1981
- // return this.isCurrentIncomingCallList.includes(res.id);
1982
- // } else {
1983
- // return false;
1984
- // }
1985
- if (res.incomingStatus == 'answered' && res.direction == "incoming-call") {
1986
- return true;
1978
+ if (res.direction == "incoming-call") {
1979
+ return this.incomeingCallSocketService.isCurrentIncomingCallList.includes(res.id);
1987
1980
  }
1988
1981
  else {
1989
- return false;
1982
+ if (res.status == 'answered' && res.direction == "incoming-call") {
1983
+ return true;
1984
+ }
1985
+ else {
1986
+ return false;
1987
+ }
1990
1988
  }
1991
1989
  }
1992
1990
  // private createAudioFromBase64(base64: string, mimeType = 'audio/mpeg'): HTMLAudioElement {