@vgroup/dialbox 0.3.57 → 0.3.58

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.
@@ -2957,14 +2957,7 @@ class DialboxComponent {
2957
2957
  // console.log("WS Event Received:", incomingCallData.data);
2958
2958
  this.twilioService.conferenceCallInfo = incomingCallData;
2959
2959
  if (!!incomingCallData.participants) {
2960
- incomingCallData.participants.forEach((item) => {
2961
- if (!item.isLeft && this.incomingCallsList.findIndex((c) => (c === null || c === void 0 ? void 0 : c.id) === (item === null || item === void 0 ? void 0 : item.id)) == -1) {
2962
- this.incomingCallsList.push(item);
2963
- }
2964
- else {
2965
- this.incomingCallsList = this.incomingCallsList.filter((c) => (c === null || c === void 0 ? void 0 : c.id) !== (item === null || item === void 0 ? void 0 : item.id));
2966
- }
2967
- });
2960
+ this.incomingCallsList = incomingCallData.participants.filter((item) => !item.isLeft) || [];
2968
2961
  if (this.incomingCallsList.length > 0) {
2969
2962
  this.isCallInProgress = true;
2970
2963
  this.isDialpadHidden = false;