@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.
|
@@ -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.
|
|
3561
|
+
this.notificationCallList = 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,10 +3990,10 @@ class DialboxComponent {
|
|
|
3990
3990
|
incomingCall.participants[0]['sourceName'] = callerInfo.sourceName;
|
|
3991
3991
|
incomingCall.participants[0]['subject'] = callerInfo.subject;
|
|
3992
3992
|
}
|
|
3993
|
-
const now = Date.
|
|
3994
|
-
incomingCall['endTime'] = (Date.
|
|
3993
|
+
const now = new Date().getTime();
|
|
3994
|
+
incomingCall['endTime'] = (new Date().getTime() + 45 * 1000);
|
|
3995
3995
|
this.notificationCallList.push(incomingCall);
|
|
3996
|
-
this.notificationCallList.filter((res) => (res === null || res === void 0 ? void 0 : res.endTime) >= now);
|
|
3996
|
+
this.notificationCallList = this.notificationCallList.filter((res) => (res === null || res === void 0 ? void 0 : res.endTime) >= now);
|
|
3997
3997
|
this.incomingCallsList = [...this.incomingCallsList, ...this.notificationCallList];
|
|
3998
3998
|
this.cdk.detectChanges();
|
|
3999
3999
|
if ((_j = this.incomingCallnotification.data.data) === null || _j === void 0 ? void 0 : _j.participantId) {
|