@vgroup/dialbox 0.7.97 → 0.7.99

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.
@@ -2767,7 +2767,7 @@ class CallProgressComponent {
2767
2767
  From: rejoinParticipentInfo.from,
2768
2768
  To: rejoinParticipentInfo.to,
2769
2769
  Env: environment.abb,
2770
- Token: tokenData.token.id,
2770
+ Token: rejoinParticipentInfo.id,
2771
2771
  Ext: rejoinParticipentInfo.extNum,
2772
2772
  conferenceId: rejoinParticipentInfo?.conferenceId
2773
2773
  },
@@ -4888,13 +4888,13 @@ class DialboxComponent {
4888
4888
  }
4889
4889
  // Filter out conferences with no participants
4890
4890
  incomingCallData = incomingCallData?.length > 0
4891
- ? incomingCallData.filter((item) => item.participants?.length > 0 && item.callSource == 'Dialpad')
4891
+ ? incomingCallData.filter((item) => item.participants?.length > 0)
4892
4892
  : [];
4893
4893
  // All conferenceIds received from socket this tick
4894
4894
  const socketConferenceIds = incomingCallData.map((c) => c.conferenceId);
4895
4895
  incomingCallData.forEach((callInfo) => {
4896
4896
  // Check if WE are an active participant in this conference
4897
- const ourNumber = callInfo?.participants.find((resData) => ((this.deviceNumberList.includes(resData?.from) && resData?.direction == 'outgoing-call' && resData?.client) ||
4897
+ const ourNumber = callInfo?.participants.find((resData) => ((this.deviceNumberList.includes(resData?.from) && resData?.direction == 'outgoing-call' && resData?.client && (resData?.host && callInfo.callSource == 'Dialpad' || !resData?.host)) ||
4898
4898
  (this.deviceNumberList.includes(resData?.to) && resData?.direction == 'incoming-call' && resData?.client)) && !resData?.isLeft);
4899
4899
  // Match the ACTIVE conference entry only — never a pending incoming-call
4900
4900
  // notification, which can share this conferenceId but must not be overwritten