refine notification filtering to exclude explicitly unseen notifications

This commit is contained in:
pa
2026-02-22 21:26:48 +09:00
committed by Natsumi
parent 581933f873
commit 8296d31e67
5 changed files with 13 additions and 10 deletions
+3
View File
@@ -145,6 +145,7 @@ export const useNotificationStore = defineStore('Notification', () => {
friendNotifications.value.filter(
(n) =>
!unseenSet.value.has(n.id) &&
n.seen !== false &&
getNotificationTs(n) > recentCutoff.value
)
);
@@ -152,6 +153,7 @@ export const useNotificationStore = defineStore('Notification', () => {
groupNotifications.value.filter(
(n) =>
!unseenSet.value.has(n.id) &&
n.seen !== false &&
getNotificationTs(n) > recentCutoff.value
)
);
@@ -159,6 +161,7 @@ export const useNotificationStore = defineStore('Notification', () => {
otherNotifications.value.filter(
(n) =>
!unseenSet.value.has(n.id) &&
n.seen !== false &&
getNotificationTs(n) > recentCutoff.value
)
);