@vgroup/dialbox 0.5.34 → 0.5.35
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.filter((res) => res.endTime >= (Date.now()));
|
|
3594
3594
|
this.notificationCallList.forEach((call) => {
|
|
3595
3595
|
incomingCallData.forEach((item) => {
|
|
3596
3596
|
let info = item.participants.find((resInfo) => resInfo?.id === call?.participantId);
|
|
@@ -4020,9 +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();
|
|
4023
4024
|
incomingCall['endTime'] = (Date.now() + 45 * 1000);
|
|
4024
4025
|
this.notificationCallList.push(incomingCall);
|
|
4025
|
-
this.notificationCallList.filter((res) => res
|
|
4026
|
+
this.notificationCallList.filter((res) => res?.endTime >= now);
|
|
4026
4027
|
this.incomingCallsList = [...this.incomingCallsList, ...this.notificationCallList];
|
|
4027
4028
|
this.cdk.detectChanges();
|
|
4028
4029
|
if (this.incomingCallnotification.data.data?.participantId) {
|