@setoelkahfi / svara / commits / 059f72b

fix: all notifications should be marked as read

doesnt show in ui properly but the function works

mellbacon committed May 21, 2024 at 18:24 UTC 059f72bd4ab689f2bdf915188f9d7122b803fadc
1 file changed +1 -2
src/lib/Notifications/notifications.ts
+1 -2
@@ -68,9 +68,8 @@ export function addNotification(type: NotifType, title: string, actions: Action[
68
69 export function markAllRead() {
70 for (const notification of notificationlist) {
71 - notification.read = true;
71 + updateReadStatus(notification.id, true);
72 }
73 - updateNotificationStatus();
73 }
74
75 export function updateReadStatus(id, read) {