Function
MarkSessionNotificationsViewed
(props: { sessionID?: () => string | undefined })
Source from the content-addressed store, hash-verified
| 286 | } |
| 287 | |
| 288 | function MarkSessionNotificationsViewed(props: { sessionID?: () => string | undefined }) { |
| 289 | const notification = useNotification() |
| 290 | createEffect(() => { |
| 291 | const sessionID = props.sessionID?.() |
| 292 | if (!notification.ready() || !sessionID) return |
| 293 | if (notification.session.unseenCount(sessionID) === 0) return |
| 294 | notification.session.markViewed(sessionID) |
| 295 | }) |
| 296 | return null |
| 297 | } |
| 298 | |
| 299 | function SessionProviders(props: ParentProps) { |
| 300 | return ( |
Callers
nothing calls this directly
Tested by
no test coverage detected