@vgroup/dialbox 0.5.46 → 0.5.47

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.
@@ -3781,6 +3781,7 @@ class DialboxComponent {
3781
3781
  this.cdk.detectChanges();
3782
3782
  }
3783
3783
  console.log('test', this.incomingCallsList);
3784
+ this.incomeingCallSocketService.pause();
3784
3785
  this.isIncomingCallnotification = false;
3785
3786
  if (!this.incomingCallsList?.length) {
3786
3787
  this.isCallInProgress = false;
@@ -3950,17 +3951,18 @@ class DialboxComponent {
3950
3951
  console.log(e);
3951
3952
  }
3952
3953
  }
3953
- incomingCallNotification(callerInfo) {
3954
+ async incomingCallNotification(callerInfo) {
3954
3955
  let incomingCall = {
3955
3956
  conferenceId: 'no',
3956
3957
  isActive: true,
3957
3958
  isIncomingCall: true,
3958
3959
  participantId: this.incomingCallnotification.data.data?.participantId,
3959
3960
  participants: [
3960
- { direction: "incoming-call", img: this.incomingCallnotification.data.data?.toImage || this.incomingCallnotification.data.data?.image || 'assets/images/user.jpg', isIncomingCall: true, isHold: false, isConference: false, isAcceptCall: false, dial: true, phone: this.incomingCallnotification.data.data?.fromNumber, to: this.incomingCallnotification.data.data?.toNumber,
3961
+ { direction: "incoming-call", img: this.incomingCallnotification.data.data?.fromImage || this.incomingCallnotification.data.data?.image || 'assets/images/user.jpg', isIncomingCall: true, isHold: false, isConference: false, isAcceptCall: false, dial: true, phone: this.incomingCallnotification.data.data?.fromNumber, to: this.incomingCallnotification.data.data?.toNumber,
3961
3962
  from: this.incomingCallnotification.data.data?.fromNumber, fromName: this.incomingCallnotification.data.data?.fromName, participantId: this.incomingCallnotification.data.data?.participantId, name: this.incomingCallnotification.data.data?.fromName, time: '', id: this.incomingCallnotification.data.data?.participantId }
3962
3963
  ],
3963
3964
  };
3965
+ this.notificationCallList = await this.notificationCallList.filter((res) => res?.endTime > (new Date().getTime()));
3964
3966
  if (callerInfo) {
3965
3967
  incomingCall.participants[0]['email'] = callerInfo.email;
3966
3968
  incomingCall.participants[0]['name'] = callerInfo.name;
@@ -3975,10 +3977,8 @@ class DialboxComponent {
3975
3977
  incomingCall.participants[0]['sourceName'] = callerInfo.sourceName;
3976
3978
  incomingCall.participants[0]['subject'] = callerInfo.subject;
3977
3979
  }
3978
- const now = new Date().getTime();
3979
3980
  incomingCall['endTime'] = (new Date().getTime() + 45 * 1000);
3980
3981
  this.notificationCallList.push(incomingCall);
3981
- this.notificationCallList = this.notificationCallList.filter((res) => res?.endTime >= now);
3982
3982
  this.incomingCallsList = [...this.incomingCallsList, ...this.notificationCallList];
3983
3983
  this.cdk.detectChanges();
3984
3984
  if (this.incomingCallnotification.data.data?.participantId) {