1
0
Fork 0
mirror of https://github.com/binwiederhier/ntfy.git synced 2025-06-05 04:33:14 +02:00

add checkmark to notification card to mark notification as read

This commit is contained in:
Hunter Kehoe 2022-05-07 16:10:48 -06:00
parent 040bb53383
commit 344da326cd
4 changed files with 20 additions and 2 deletions

View file

@ -115,6 +115,12 @@ class SubscriptionManager {
.delete();
}
async markNotificationRead(notificationId) {
await db.notifications
.where({id: notificationId, new: 1})
.modify({new: 0});
}
async markNotificationsRead(subscriptionId) {
await db.notifications
.where({subscriptionId: subscriptionId, new: 1})