diff --git a/src/analytics/features/index.ts b/src/analytics/features/index.ts index 4f50415323..42fb3e082b 100644 --- a/src/analytics/features/index.ts +++ b/src/analytics/features/index.ts @@ -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 } diff --git a/src/analytics/features/types.ts b/src/analytics/features/types.ts index c059eca8b6..d05a1e59c1 100644 --- a/src/analytics/features/types.ts +++ b/src/analytics/features/types.ts @@ -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', diff --git a/src/screens/PostThread/components/ThreadItemPostNumber.tsx b/src/screens/PostThread/components/ThreadItemPostNumber.tsx index 389e609c61..40868270db 100644 --- a/src/screens/PostThread/components/ThreadItemPostNumber.tsx +++ b/src/screens/PostThread/components/ThreadItemPostNumber.tsx @@ -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 &&