Add mark all read

This commit is contained in:
Jon Staab
2025-01-15 11:07:21 -08:00
parent e36e6093e9
commit 4886650dfa
3 changed files with 34 additions and 3 deletions
+4 -1
View File
@@ -36,7 +36,10 @@ export const notifications = derived(
}
for (const [entryPath, ts] of Object.entries($checked)) {
const isMatch = entryPath === "*" || entryPath.startsWith(path)
const isMatch =
entryPath === "*" ||
entryPath.startsWith(path) ||
(entryPath === "/chat/*" && path.startsWith("/chat/"))
if (isMatch && ts > latestEvent.created_at) {
return false