@vgroup/dialbox 0.5.35 → 0.5.37

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.
@@ -3590,7 +3590,7 @@ class DialboxComponent {
3590
3590
  this.incomingCallsList = incomingCallData || [];
3591
3591
  let parentCall = [];
3592
3592
  if (this.notificationCallList.length) {
3593
- this.notificationCallList.filter((res) => res.endTime >= (Date.now()));
3593
+ this.notificationCallList = this.notificationCallList.filter((res) => res.endTime >= (new Date().getTime()));
3594
3594
  this.notificationCallList.forEach((call) => {
3595
3595
  incomingCallData.forEach((item) => {
3596
3596
  let info = item.participants.find((resInfo) => resInfo?.id === call?.participantId);
@@ -4020,10 +4020,10 @@ class DialboxComponent {
4020
4020
  incomingCall.participants[0]['sourceName'] = callerInfo.sourceName;
4021
4021
  incomingCall.participants[0]['subject'] = callerInfo.subject;
4022
4022
  }
4023
- const now = Date.now();
4024
- incomingCall['endTime'] = (Date.now() + 45 * 1000);
4023
+ const now = new Date().getTime();
4024
+ incomingCall['endTime'] = (new Date().getTime() + 45 * 1000);
4025
4025
  this.notificationCallList.push(incomingCall);
4026
- this.notificationCallList.filter((res) => res?.endTime >= now);
4026
+ this.notificationCallList = this.notificationCallList.filter((res) => res?.endTime >= now);
4027
4027
  this.incomingCallsList = [...this.incomingCallsList, ...this.notificationCallList];
4028
4028
  this.cdk.detectChanges();
4029
4029
  if (this.incomingCallnotification.data.data?.participantId) {