feat: add and close #169

This commit is contained in:
Xyphyn committed 2023-10-14 11:31:09 -07:00
1 parent ea594e0061
commit 108169f5a9
9 files changed
+89 -44

No files matched your search

+1 -1
View File
@@ -32,7 +32,7 @@
const response = await getClient().markAllAsRead()
$profile.user.unreads = 0
$profile.user.notifications.inbox = 0
goto($page.url, {
invalidateAll: true,
+1 -1
View File
@@ -49,7 +49,7 @@
}
item.read = isRead
if ($profile.user) $profile.user.unreads += isRead ? -1 : 1
if ($profile.user) $profile.user.notifications.inbox += isRead ? -1 : 1
loading = false
}