diff options
author | Samuel Newman <mozzius@protonmail.com> | 2024-09-07 20:15:15 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-07 12:15:15 -0700 |
commit | 1b4fee3e43003d73a2de6a1bf0524bdf092dcc8f (patch) | |
tree | 63844eacffaebf39cd8310bc792c1b4b90adc432 /src/view/com/util/post-embeds/VideoEmbed.tsx | |
parent | 51259e7c4264497938be96211611dcc225a1673b (diff) | |
download | voidsky-1b4fee3e43003d73a2de6a1bf0524bdf092dcc8f.tar.zst |
[Video] Open the floodgates (partially) (#5208)
Diffstat (limited to 'src/view/com/util/post-embeds/VideoEmbed.tsx')
-rw-r--r-- | src/view/com/util/post-embeds/VideoEmbed.tsx | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/view/com/util/post-embeds/VideoEmbed.tsx b/src/view/com/util/post-embeds/VideoEmbed.tsx index 9c3a34dda..3175266e4 100644 --- a/src/view/com/util/post-embeds/VideoEmbed.tsx +++ b/src/view/com/util/post-embeds/VideoEmbed.tsx @@ -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={[ |