@vgroup/dialbox 0.7.80 → 0.7.81

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.
@@ -2859,18 +2859,13 @@ class CallProgressComponent {
2859
2859
  }
2860
2860
  getStatus(res) {
2861
2861
  if (res?.direction == "incoming-call") {
2862
- return res?.callStatus == "participant-join" || res?.callStatus == "participant-mute" || res?.callStatus == "participant-hold" || res?.callStatus == 'connected' ? true : false;
2862
+ return res?.callStatus == 'ringing' ? false : !res?.isLeft;
2863
2863
  }
2864
2864
  else if (res?.direction == "outgoing-call") {
2865
2865
  return true;
2866
2866
  }
2867
2867
  else {
2868
- if (res.status == 'answered' && res.direction == "incoming-call") {
2869
- return true;
2870
- }
2871
- else {
2872
- return false;
2873
- }
2868
+ return false;
2874
2869
  }
2875
2870
  }
2876
2871
  GetContactsList() {
@@ -4822,10 +4817,7 @@ class DialboxComponent {
4822
4817
  incomingCallData.forEach((callInfo) => {
4823
4818
  // Check if WE are an active participant in this conference
4824
4819
  const ourNumber = callInfo?.participants.find((resData) => ((this.deviceNumberList.includes(resData?.from) && resData?.direction == 'outgoing-call' && resData?.client) ||
4825
- (this.deviceNumberList.includes(resData?.to) && resData?.direction == 'incoming-call' && resData?.client &&
4826
- resData?.callStatus !== 'completed' &&
4827
- (resData?.callStatus == 'participant-join' || resData?.callStatus == 'participant-mute' ||
4828
- resData?.callStatus == 'participant-hold' || resData?.callStatus == 'connected'))) && !resData?.isLeft && resData?.status != 'no-answer' && resData?.status != 'canceled');
4820
+ (this.deviceNumberList.includes(resData?.to) && resData?.direction == 'incoming-call' && resData?.client)) && !resData?.isLeft);
4829
4821
  // Match the ACTIVE conference entry only — never a pending incoming-call
4830
4822
  // notification, which can share this conferenceId but must not be overwritten
4831
4823
  // with socket data (it is keyed/managed separately by participantId).
@@ -4838,10 +4830,6 @@ class DialboxComponent {
4838
4830
  else {
4839
4831
  this.incomingCallsList.push({ ...callInfo });
4840
4832
  }
4841
- // If this was a pending incoming notification that is now accepted → remove from notificationCallList
4842
- // this.notificationCallList = this.notificationCallList.filter(
4843
- // (n: any) => n.conferenceId !== callInfo.conferenceId && (n.to == ourNumber?.to || n.to !== ourNumber?.from)
4844
- // );
4845
4833
  }
4846
4834
  else {
4847
4835
  // We are NOT a participant — remove from incomingCallsList only if it is NOT an incoming-call notification
@@ -5338,7 +5326,7 @@ class DialboxComponent {
5338
5326
  participants: [
5339
5327
  {
5340
5328
  direction: "incoming-call", businessNumber: notification.c2cBusiness, img: notification.fromImage || notification.image || 'assets/images/user.jpg', isIncomingCall: true, isHold: false, isConference: false, isAcceptCall: false, dial: true, phone: notification.fromNumber, to: notification.toNumber,
5341
- from: notification.fromNumber, fromName: notification.fromName, participantId: notification.participantId, name: notification.fromName, time: '', id: notification.participantId, conferenceId: notification.conferenceId, clientSid: notification.clientSid,
5329
+ from: notification.fromNumber, fromName: notification.fromName, participantId: notification.participantId, name: notification.fromName, time: '', id: notification.participantId, conferenceId: notification.conferenceId, clientSid: notification.clientSid, callStatus: 'ringing'
5342
5330
  }
5343
5331
  ],
5344
5332
  };