From c41f372b3c0707013c3abbfba7b18ca7ca71eef1 Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Fri, 30 Aug 2024 20:53:27 +0100 Subject: [PATCH] [Video] Split 'videos' gate in two (#5037) --- src/lib/statsig/gates.ts | 5 +++-- src/view/com/composer/Composer.tsx | 2 +- src/view/com/util/post-embeds/VideoEmbed.tsx | 2 +- src/view/com/util/post-embeds/VideoEmbed.web.tsx | 2 +- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/lib/statsig/gates.ts b/src/lib/statsig/gates.ts index f45be0b7..be40548a 100644 --- a/src/lib/statsig/gates.ts +++ b/src/lib/statsig/gates.ts @@ -5,5 +5,6 @@ export type Gate = | 'onboarding_minimum_interests' | 'suggested_feeds_interstitial' | 'show_follow_suggestions_in_profile' - | 'video_debug' - | 'videos' + | 'video_debug' // not recommended + | 'video_upload' // upload videos + | 'video_view_on_posts' // see posted videos diff --git a/src/view/com/composer/Composer.tsx b/src/view/com/composer/Composer.tsx index f0b4ae75..8a8fa66b 100644 --- a/src/view/com/composer/Composer.tsx +++ b/src/view/com/composer/Composer.tsx @@ -760,7 +760,7 @@ export const ComposePost = observer(function ComposePost({ ) : ( - {gate('videos') && ( + {gate('video_upload') && (