@vgroup/dialbox 0.5.34 → 0.5.36

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.
@@ -3558,7 +3558,7 @@ class DialboxComponent {
3558
3558
  this.incomingCallsList = incomingCallData || [];
3559
3559
  let parentCall = [];
3560
3560
  if (this.notificationCallList.length) {
3561
- this.notificationCallList.filter((res) => res.endTime >= Date.now());
3561
+ this.notificationCallList.filter((res) => res.endTime >= (new Date().getTime()));
3562
3562
  this.notificationCallList.forEach((call) => {
3563
3563
  incomingCallData.forEach((item) => {
3564
3564
  let info = item.participants.find((resInfo) => (resInfo === null || resInfo === void 0 ? void 0 : resInfo.id) === (call === null || call === void 0 ? void 0 : call.participantId));
@@ -3990,9 +3990,10 @@ class DialboxComponent {
3990
3990
  incomingCall.participants[0]['sourceName'] = callerInfo.sourceName;
3991
3991
  incomingCall.participants[0]['subject'] = callerInfo.subject;
3992
3992
  }
3993
- incomingCall['endTime'] = (Date.now() + 45 * 1000);
3993
+ const now = new Date().getTime();
3994
+ incomingCall['endTime'] = (new Date().getTime() + 45 * 1000);
3994
3995
  this.notificationCallList.push(incomingCall);
3995
- this.notificationCallList.filter((res) => res.endTime >= Date.now());
3996
+ this.notificationCallList.filter((res) => (res === null || res === void 0 ? void 0 : res.endTime) >= now);
3996
3997
  this.incomingCallsList = [...this.incomingCallsList, ...this.notificationCallList];
3997
3998
  this.cdk.detectChanges();
3998
3999
  if ((_j = this.incomingCallnotification.data.data) === null || _j === void 0 ? void 0 : _j.participantId) {