Skip to content

Commit

Permalink
remove gate from updates (#3646)
Browse files Browse the repository at this point in the history
  • Loading branch information
haileyok authored Apr 22, 2024
1 parent 0e3a13b commit 243769e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
4 changes: 1 addition & 3 deletions src/lib/hooks/useOTAUpdates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)
Expand Down
1 change: 0 additions & 1 deletion src/lib/statsig/gates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'

0 comments on commit 243769e

Please sign in to comment.