Bluesky app fork with some witchin' additions 💫
0
fork

Configure Feed

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

Enable video_upload gate (#5311)

authored by

dan and committed by
GitHub
fddb1255 47d99b87

+7 -10
+1 -1
src/lib/statsig/gates.ts
··· 1 1 export type Gate = 2 2 // Keep this alphabetic please. 3 - 'debug_show_feedcontext' | 'suggested_feeds_interstitial' | 'video_upload' // upload videos 3 + 'debug_show_feedcontext' | 'suggested_feeds_interstitial'
+6 -9
src/view/com/composer/Composer.tsx
··· 59 59 import {usePalette} from '#/lib/hooks/usePalette' 60 60 import {useWebMediaQueries} from '#/lib/hooks/useWebMediaQueries' 61 61 import {LikelyType} from '#/lib/link-meta/link-meta' 62 - import {logEvent, useGate} from '#/lib/statsig/statsig' 62 + import {logEvent} from '#/lib/statsig/statsig' 63 63 import {cleanError} from '#/lib/strings/errors' 64 64 import {insertMentionAt} from '#/lib/strings/mention-manip' 65 65 import {shortenLinks} from '#/lib/strings/rich-text-manip' ··· 140 140 }: Props & { 141 141 cancelRef?: React.RefObject<CancelRef> 142 142 }) { 143 - const gate = useGate() 144 143 const {currentAccount} = useSession() 145 144 const agent = useAgent() 146 145 const {data: currentProfile} = useProfileQuery({did: currentAccount!.did}) ··· 803 802 ) : ( 804 803 <ToolbarWrapper style={[a.flex_row, a.align_center, a.gap_xs]}> 805 804 <SelectPhotoBtn gallery={gallery} disabled={!canSelectImages} /> 806 - {gate('video_upload') && ( 807 - <SelectVideoBtn 808 - onSelectVideo={selectVideo} 809 - disabled={!canSelectImages} 810 - setError={setError} 811 - /> 812 - )} 805 + <SelectVideoBtn 806 + onSelectVideo={selectVideo} 807 + disabled={!canSelectImages} 808 + setError={setError} 809 + /> 813 810 <OpenCameraBtn gallery={gallery} disabled={!canSelectImages} /> 814 811 <SelectGifBtn 815 812 onClose={focusTextInput}