@vgroup/dialbox 0.3.57 → 0.3.59

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.
@@ -2950,15 +2950,9 @@ class DialboxComponent {
2950
2950
  // console.log("WS Event Received:", incomingCallData.data);
2951
2951
  this.twilioService.conferenceCallInfo = incomingCallData;
2952
2952
  if (!!incomingCallData.participants) {
2953
- incomingCallData.participants.forEach((item) => {
2954
- if (!item.isLeft && this.incomingCallsList.findIndex((c) => c?.id === item?.id) == -1) {
2955
- this.incomingCallsList.push(item);
2956
- }
2957
- else {
2958
- this.incomingCallsList = this.incomingCallsList.filter((c) => c?.id !== item?.id);
2959
- }
2960
- });
2961
- if (this.incomingCallsList.length > 0) {
2953
+ this.incomingCallsList = incomingCallData.participants.filter((item) => !item.isLeft) || [];
2954
+ console.log('this.incomingCallsList web', this.incomingCallsList);
2955
+ if (this.incomingCallsList.length) {
2962
2956
  this.isCallInProgress = true;
2963
2957
  this.isDialpadHidden = false;
2964
2958
  }