From fddb1255ec7aadc0910f95aaaa0c0e0d3663a1fb Mon Sep 17 00:00:00 2001 From: dan Date: Fri, 13 Sep 2024 01:37:07 +0100 Subject: [PATCH] Enable video_upload gate (#5311) --- src/lib/statsig/gates.ts | 2 +- src/view/com/composer/Composer.tsx | 15 ++++++--------- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/src/lib/statsig/gates.ts b/src/lib/statsig/gates.ts index df9daab4476..7966767d1bd 100644 --- a/src/lib/statsig/gates.ts +++ b/src/lib/statsig/gates.ts @@ -1,3 +1,3 @@ export type Gate = // Keep this alphabetic please. - 'debug_show_feedcontext' | 'suggested_feeds_interstitial' | 'video_upload' // upload videos + 'debug_show_feedcontext' | 'suggested_feeds_interstitial' diff --git a/src/view/com/composer/Composer.tsx b/src/view/com/composer/Composer.tsx index 4c7892bc092..dfdfb3ebdfc 100644 --- a/src/view/com/composer/Composer.tsx +++ b/src/view/com/composer/Composer.tsx @@ -59,7 +59,7 @@ import {useIsKeyboardVisible} from '#/lib/hooks/useIsKeyboardVisible' import {usePalette} from '#/lib/hooks/usePalette' import {useWebMediaQueries} from '#/lib/hooks/useWebMediaQueries' import {LikelyType} from '#/lib/link-meta/link-meta' -import {logEvent, useGate} from '#/lib/statsig/statsig' +import {logEvent} from '#/lib/statsig/statsig' import {cleanError} from '#/lib/strings/errors' import {insertMentionAt} from '#/lib/strings/mention-manip' import {shortenLinks} from '#/lib/strings/rich-text-manip' @@ -140,7 +140,6 @@ export const ComposePost = observer(function ComposePost({ }: Props & { cancelRef?: React.RefObject }) { - const gate = useGate() const {currentAccount} = useSession() const agent = useAgent() const {data: currentProfile} = useProfileQuery({did: currentAccount!.did}) @@ -803,13 +802,11 @@ export const ComposePost = observer(function ComposePost({ ) : ( - {gate('video_upload') && ( - - )} +