[Video] Open the floodgates (partially) (#5208)
This commit is contained in:
parent
51259e7c42
commit
1b4fee3e43
3 changed files with 1 additions and 29 deletions
|
|
@ -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={[
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue