Skip to content

Commit

Permalink
🪵📌 (#5594)
Browse files Browse the repository at this point in the history
  • Loading branch information
mozzius authored Oct 3, 2024
1 parent 2aa365b commit 523a9a4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib/statsig/events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,8 @@ export type LogEvents = {
}
'post:mute': {}
'post:unmute': {}
'post:pin': {}
'post:unpin': {}
'profile:follow:sampled': {
didBecomeMutual: boolean | undefined
followeeClout: number | undefined
Expand Down
2 changes: 2 additions & 0 deletions src/view/com/util/forms/PostDropdownBtn.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import {getCurrentRoute} from '#/lib/routes/helpers'
import {makeProfileLink} from '#/lib/routes/links'
import {CommonNavigatorParams, NavigationProp} from '#/lib/routes/types'
import {shareUrl} from '#/lib/sharing'
import {logEvent} from '#/lib/statsig/statsig'
import {richTextToString} from '#/lib/strings/rich-text-helpers'
import {toShareUrl} from '#/lib/strings/url-helpers'
import {useTheme} from '#/lib/ThemeContext'
Expand Down Expand Up @@ -350,6 +351,7 @@ let PostDropdownBtn = ({
])

const onPressPin = useCallback(() => {
logEvent(isPinned ? 'post:unpin' : 'post:pin', {})
pinPostMutate({
postUri,
postCid,
Expand Down

0 comments on commit 523a9a4

Please sign in to comment.