@vgroup/dialbox 0.7.97 → 0.7.98

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.
@@ -4933,14 +4933,14 @@ class DialboxComponent {
4933
4933
  }
4934
4934
  // Filter out conferences with no participants
4935
4935
  incomingCallData = (incomingCallData === null || incomingCallData === void 0 ? void 0 : incomingCallData.length) > 0
4936
- ? incomingCallData.filter((item) => { var _a; return ((_a = item.participants) === null || _a === void 0 ? void 0 : _a.length) > 0 && item.callSource == 'Dialpad'; })
4936
+ ? incomingCallData.filter((item) => { var _a; return ((_a = item.participants) === null || _a === void 0 ? void 0 : _a.length) > 0; })
4937
4937
  : [];
4938
4938
  // All conferenceIds received from socket this tick
4939
4939
  const socketConferenceIds = incomingCallData.map((c) => c.conferenceId);
4940
4940
  incomingCallData.forEach((callInfo) => {
4941
4941
  var _a;
4942
4942
  // Check if WE are an active participant in this conference
4943
- const ourNumber = callInfo === null || callInfo === void 0 ? void 0 : callInfo.participants.find((resData) => ((this.deviceNumberList.includes(resData === null || resData === void 0 ? void 0 : resData.from) && (resData === null || resData === void 0 ? void 0 : resData.direction) == 'outgoing-call' && (resData === null || resData === void 0 ? void 0 : resData.client)) ||
4943
+ const ourNumber = callInfo === null || callInfo === void 0 ? void 0 : callInfo.participants.find((resData) => ((this.deviceNumberList.includes(resData === null || resData === void 0 ? void 0 : resData.from) && (resData === null || resData === void 0 ? void 0 : resData.direction) == 'outgoing-call' && (resData === null || resData === void 0 ? void 0 : resData.client) && ((resData === null || resData === void 0 ? void 0 : resData.host) && callInfo.callSource == 'Dialpad' || !(resData === null || resData === void 0 ? void 0 : resData.host))) ||
4944
4944
  (this.deviceNumberList.includes(resData === null || resData === void 0 ? void 0 : resData.to) && (resData === null || resData === void 0 ? void 0 : resData.direction) == 'incoming-call' && (resData === null || resData === void 0 ? void 0 : resData.client))) && !(resData === null || resData === void 0 ? void 0 : resData.isLeft));
4945
4945
  // Match the ACTIVE conference entry only — never a pending incoming-call
4946
4946
  // notification, which can share this conferenceId but must not be overwritten