remove DMs gate (#4112)

This commit is contained in:
Samuel Newman
2024-05-21 01:29:22 +01:00
committed by GitHub
parent a7b0242cc8
commit 4a7436886d
9 changed files with 41 additions and 152 deletions
-5
View File
@@ -5,7 +5,6 @@ import {useLingui} from '@lingui/react'
import {NativeStackScreenProps} from '@react-navigation/native-stack'
import {CommonNavigatorParams} from '#/lib/routes/types'
import {useGate} from '#/lib/statsig/statsig'
import {isNative} from '#/platform/detection'
import {useUpdateActorDeclaration} from '#/state/queries/messages/actor-declaration'
import {useProfileQuery} from '#/state/queries/profile'
@@ -18,7 +17,6 @@ import {Divider} from '#/components/Divider'
import * as Toggle from '#/components/forms/Toggle'
import {Text} from '#/components/Typography'
import {useBackgroundNotificationPreferences} from '../../../modules/expo-background-notification-handler/src/BackgroundNotificationHandlerProvider'
import {ClipClopGate} from './gate'
type AllowIncoming = 'all' | 'none' | 'following'
@@ -46,9 +44,6 @@ export function MessagesSettingsScreen({}: Props) {
[updateDeclaration],
)
const gate = useGate()
if (!gate('dms')) return <ClipClopGate />
return (
<CenteredView sideBorders style={a.h_full_vh}>
<ViewHeader title={_(msg`Settings`)} showOnDesktop showBorder />