Bluesky app fork with some witchin' additions 💫
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Track notification open (#3274)

authored by

dan and committed by
GitHub
ebf8644d 0cac671e

+3
+2
src/lib/notifications/notifications.ts
··· 7 7 import {RQKEY as RQKEY_NOTIFS} from '#/state/queries/notifications/feed' 8 8 import {truncateAndInvalidate} from '#/state/queries/util' 9 9 import {SessionAccount, getAgent} from '#/state/session' 10 + import {logEvent} from '../statsig/statsig' 10 11 11 12 const SERVICE_DID = (serviceUrl?: string) => 12 13 serviceUrl?.includes('staging') ··· 123 124 logger.DebugContext.notifications, 124 125 ) 125 126 track('Notificatons:OpenApp') 127 + logEvent('notifications:openApp', {}) 126 128 truncateAndInvalidate(queryClient, RQKEY_NOTIFS()) 127 129 resetToTab('NotificationsTab') // open notifications tab 128 130 }
+1
src/lib/statsig/events.ts
··· 2 2 init: { 3 3 initMs: number 4 4 } 5 + 'notifications:openApp': {} 5 6 'state:background': {} 6 7 'state:foreground': {} 7 8 'feed:endReached': {