invert flag for sending to statsig (#8431)
This commit is contained in:
@@ -158,7 +158,11 @@ export function LiveStatus({
|
||||
color="primary"
|
||||
variant="solid"
|
||||
onPress={() => {
|
||||
logger.metric('live:card:watch', {subject: profile.did})
|
||||
logger.metric(
|
||||
'live:card:watch',
|
||||
{subject: profile.did},
|
||||
{statsig: true},
|
||||
)
|
||||
openLink(embed.external.uri, false)
|
||||
}}>
|
||||
<ButtonText>
|
||||
@@ -187,7 +191,11 @@ export function LiveStatus({
|
||||
color="secondary"
|
||||
variant="solid"
|
||||
onPress={() => {
|
||||
logger.metric('live:card:openProfile', {subject: profile.did})
|
||||
logger.metric(
|
||||
'live:card:openProfile',
|
||||
{subject: profile.did},
|
||||
{statsig: true},
|
||||
)
|
||||
unstableCacheProfileView(queryClient, profile)
|
||||
onPressOpenProfile()
|
||||
}}>
|
||||
|
||||
@@ -140,9 +140,17 @@ export function useUpsertLiveStatusMutation(
|
||||
},
|
||||
onSuccess: ({record, image}) => {
|
||||
if (createdAt) {
|
||||
logger.metric('live:edit', {duration: record.durationMinutes})
|
||||
logger.metric(
|
||||
'live:edit',
|
||||
{duration: record.durationMinutes},
|
||||
{statsig: true},
|
||||
)
|
||||
} else {
|
||||
logger.metric('live:create', {duration: record.durationMinutes})
|
||||
logger.metric(
|
||||
'live:create',
|
||||
{duration: record.durationMinutes},
|
||||
{statsig: true},
|
||||
)
|
||||
}
|
||||
|
||||
Toast.show(_(msg`You are now live!`))
|
||||
@@ -199,7 +207,7 @@ export function useRemoveLiveStatusMutation() {
|
||||
})
|
||||
},
|
||||
onSuccess: () => {
|
||||
logger.metric('live:remove', {})
|
||||
logger.metric('live:remove', {}, {statsig: true})
|
||||
Toast.show(_(msg`You are no longer live`))
|
||||
control.close(() => {
|
||||
if (!currentAccount) return
|
||||
|
||||
Reference in New Issue
Block a user