From 4be4288ef0d1e53fe195fe216cb4504f64ecb4f0 Mon Sep 17 00:00:00 2001 From: Jon Staab Date: Thu, 11 Dec 2025 10:27:10 -0800 Subject: [PATCH] Fix phantom notifications on mobile --- src/app/util/notifications.ts | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/src/app/util/notifications.ts b/src/app/util/notifications.ts index 96f0d826..258ab4ce 100644 --- a/src/app/util/notifications.ts +++ b/src/app/util/notifications.ts @@ -124,11 +124,8 @@ export const notifications = call(() => { for (const [goalId, [comment]] of commentsByGoalId.entries()) { const goalItemPath = makeGoalPath(url, goalId) - if (hasNotification(spacePathMobile, comment)) { - paths.add(spacePathMobile) - } - if (hasNotification(goalPath, comment)) { + paths.add(spacePathMobile) paths.add(goalPath) } @@ -145,11 +142,8 @@ export const notifications = call(() => { for (const [threadId, [comment]] of commentsByThreadId.entries()) { const threadItemPath = makeThreadPath(url, threadId) - if (hasNotification(spacePathMobile, comment)) { - paths.add(spacePathMobile) - } - if (hasNotification(threadPath, comment)) { + paths.add(spacePathMobile) paths.add(threadPath) } @@ -166,11 +160,8 @@ export const notifications = call(() => { for (const [eventId, [comment]] of commentsByEventId.entries()) { const calendarItemPath = makeCalendarPath(url, eventId) - if (hasNotification(spacePathMobile, comment)) { - paths.add(spacePathMobile) - } - if (hasNotification(calendarPath, comment)) { + paths.add(spacePathMobile) paths.add(calendarPath) }