fix notifications counter not taking into account unseen setting

This commit is contained in:
Henry Jameson 2026-05-07 10:44:18 +03:00
commit a50ea7f278
3 changed files with 3 additions and 0 deletions

View file

@ -79,6 +79,7 @@ const Notifications = {
return unseenNotificationsFromStore(
this.$store,
useMergedConfigStore().mergedConfig.notificationVisibility,
useMergedConfigStore().mergedConfig.ignoreInactionableSeen,
)
},
filteredNotifications() {

View file

@ -76,6 +76,7 @@ const SideDrawer = {
return unseenNotificationsFromStore(
this.$store,
useMergedConfigStore().mergedConfig.notificationVisibility,
useMergedConfigStore().mergedConfig.ignoreInactionableSeen,
)
},
unseenNotificationsCount() {

View file

@ -113,6 +113,7 @@ export const unseenNotificationsFromStore = (
) => {
return filteredNotificationsFromStore(store, notificationVisibility).filter(
({ seen, type }) => {
console.log(ignoreInactionableSeen)
if (!ignoreInactionableSeen) return !seen
if (seen) return false
return ACTIONABLE_NOTIFICATION_TYPES.has(type)