diff options
author | Hailey <me@haileyok.com> | 2024-04-22 13:06:25 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-22 21:06:25 +0100 |
commit | 243769e6577f1fc2a23dc4542bd57eab3bba45de (patch) | |
tree | 02804e415029709df8bec2b56d6750c2d24d286c /src/lib | |
parent | 0e3a13b6df3c3e0c72473715be7d6eb809cae597 (diff) | |
download | voidsky-243769e6577f1fc2a23dc4542bd57eab3bba45de.tar.zst |
remove gate from updates (#3646)
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/hooks/useOTAUpdates.ts | 4 | ||||
-rw-r--r-- | src/lib/statsig/gates.ts | 1 |
2 files changed, 1 insertions, 4 deletions
diff --git a/src/lib/hooks/useOTAUpdates.ts b/src/lib/hooks/useOTAUpdates.ts index b8d331c6f..a1692e62c 100644 --- a/src/lib/hooks/useOTAUpdates.ts +++ b/src/lib/hooks/useOTAUpdates.ts @@ -12,7 +12,6 @@ import { import {logger} from '#/logger' import {IS_TESTFLIGHT} from 'lib/app-info' -import {useGate} from 'lib/statsig/statsig' import {isIOS} from 'platform/detection' const MINIMUM_MINIMIZE_TIME = 15 * 60e3 @@ -31,8 +30,7 @@ async function setExtraParams() { } export function useOTAUpdates() { - const gate = useGate() - const shouldReceiveUpdates = isEnabled && !__DEV__ && gate('receive_updates') + const shouldReceiveUpdates = isEnabled && !__DEV__ const appState = React.useRef<AppStateStatus>('active') const lastMinimize = React.useRef(0) diff --git a/src/lib/statsig/gates.ts b/src/lib/statsig/gates.ts index e42e9efe1..843c14f04 100644 --- a/src/lib/statsig/gates.ts +++ b/src/lib/statsig/gates.ts @@ -6,7 +6,6 @@ export type Gate = | 'hide_vertical_scroll_indicators' | 'new_gif_player' | 'new_profile_scroll_component' - | 'receive_updates' | 'show_follow_back_label_v2' | 'start_session_with_following_v2' | 'use_new_suggestions_endpoint' |