Explorar o código

fix(app): clear late session notifications (#33753)

Co-authored-by: Test <test@opencode.test>
Brendan Allan hai 4 meses
pai
achega
ba2ba770d5
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      packages/app/src/pages/layout-new.tsx

+ 1 - 0
packages/app/src/pages/layout-new.tsx

@@ -18,6 +18,7 @@ export default function NewLayout(props: ParentProps) {
   createEffect(() => setV2Toast(true))
   createEffect(() => setV2Toast(true))
   createEffect(() => {
   createEffect(() => {
     if (!notification.ready() || !params.id) return
     if (!notification.ready() || !params.id) return
+    if (notification.session.unseenCount(params.id) === 0) return
     notification.session.markViewed(params.id)
     notification.session.markViewed(params.id)
   })
   })