[Video] Open the floodgates (partially) (#5208)

This commit is contained in:
Samuel Newman 2024-09-07 20:15:15 +01:00 committed by GitHub
parent 51259e7c42
commit 1b4fee3e43
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 1 additions and 29 deletions

View file

@ -7,7 +7,6 @@ import {msg, Trans} from '@lingui/macro'
import {useLingui} from '@lingui/react'
import {clamp} from '#/lib/numbers'
import {useGate} from '#/lib/statsig/statsig'
import {useAutoplayDisabled} from 'state/preferences'
import {VideoEmbedInnerNative} from '#/view/com/util/post-embeds/VideoEmbedInner/VideoEmbedInnerNative'
import {atoms as a} from '#/alf'
@ -24,8 +23,6 @@ interface Props {
}
export function VideoEmbed({embed}: Props) {
const gate = useGate()
const [key, setKey] = useState(0)
const renderError = useCallback(
@ -42,10 +39,6 @@ export function VideoEmbed({embed}: Props) {
aspectRatio = clamp(aspectRatio, 1 / 1, 3 / 1)
}
if (!gate('video_view_on_posts')) {
return null
}
return (
<View
style={[