ソースを参照

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

Co-authored-by: Test <test@opencode.test>
Brendan Allan 2 ヶ月 前
コミット
ba2ba770d5
1 ファイル変更1 行追加0 行削除
  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(() => {
     if (!notification.ready() || !params.id) return
+    if (notification.session.unseenCount(params.id) === 0) return
     notification.session.markViewed(params.id)
   })