notification and chat slow

This commit is contained in:
Peter Maquiran
2024-12-16 12:04:02 +01:00
parent aef73625f0
commit 18a8d90d99
60 changed files with 363 additions and 381 deletions
@@ -122,7 +122,7 @@ export class LocalNotificationService {
return from(liveQuery( () => {
return NotificationDataSource.notification.orderBy('createdAt').reverse().toArray()
.then(notifications => {
return notifications.filter(notification => notification.status === false)
return notifications.filter(notification => notification.viewDate == null)
})
}))
}
@@ -132,7 +132,7 @@ export class LocalNotificationService {
return NotificationDataSource.notification
.toArray()
.then(notifications => {
return notifications.filter(notification => notification.status === false).length
return notifications.filter(notification => notification.viewDate == null).length
})
}))
}