Remove gate for OP thread numbering (#11639)
This commit is contained in:
@@ -93,24 +93,6 @@ export function getFeatureDescription(feature: Features, i18n: I18n) {
|
||||
}),
|
||||
),
|
||||
}
|
||||
case Features.CanonicalPostNumberingEnable:
|
||||
return {
|
||||
key: feature,
|
||||
name: i18n._(
|
||||
msg({
|
||||
message: 'Thread numbering',
|
||||
comment:
|
||||
'Name for a feature flag (See numbered badges (1/3, 2/3, etc.) on posts in a thread by the same author.)',
|
||||
}),
|
||||
),
|
||||
description: i18n._(
|
||||
msg({
|
||||
message:
|
||||
'See numbered badges (1/3, 2/3, etc.) on posts in a thread by the same author.',
|
||||
comment: 'Description of a feature flag (Thread numbering)',
|
||||
}),
|
||||
),
|
||||
}
|
||||
default:
|
||||
return null
|
||||
}
|
||||
|
||||
@@ -22,7 +22,6 @@ export enum Features {
|
||||
SearchStarterPacksV2Enable = 'search_starter_packs_v2:enable',
|
||||
FollowSortEnable = 'follow_sort:enable',
|
||||
OnboardingInterestsRequiredEnable = 'onboarding:interests:required:enable',
|
||||
CanonicalPostNumberingEnable = 'canonical_post_numbering:enable',
|
||||
ContentVisibilitySettingsEnable = 'content_visibility_settings:enable',
|
||||
ModerationInboxEnable = 'moderation_inbox:enable',
|
||||
|
||||
|
||||
@@ -2,7 +2,6 @@ import {Text, View} from 'react-native'
|
||||
import {Trans, useLingui} from '@lingui/react/macro'
|
||||
|
||||
import {atoms as a, ios, platform, useTheme} from '#/alf'
|
||||
import {useAnalytics} from '#/analytics'
|
||||
import {type app} from '#/lexicons'
|
||||
|
||||
/**
|
||||
@@ -19,12 +18,10 @@ export type ThreadItemPostNumbering = Pick<
|
||||
export function useHasThreadItemPostNumber(
|
||||
value: ThreadItemPostNumbering | undefined,
|
||||
) {
|
||||
const ax = useAnalytics()
|
||||
const index = value?.opThreadPostIndex
|
||||
const count = value?.opThreadPostCount
|
||||
|
||||
return (
|
||||
ax.features.enabled(ax.features.CanonicalPostNumberingEnable) &&
|
||||
index !== undefined &&
|
||||
count !== undefined &&
|
||||
index >= 1 &&
|
||||
|
||||
Reference in New Issue
Block a user