diff --git a/ios/patching/037-social-app-ios-disable-contacts-nux.patch b/ios/patching/037-social-app-ios-disable-contacts-nux.patch new file mode 100644 index 0000000..70b719c --- /dev/null +++ b/ios/patching/037-social-app-ios-disable-contacts-nux.patch @@ -0,0 +1,52 @@ +diff --git a/src/components/dialogs/nuxs/index.tsx b/src/components/dialogs/nuxs/index.tsx +index 63e11a7f4..b6d0fa743 100644 +--- a/src/components/dialogs/nuxs/index.tsx ++++ b/src/components/dialogs/nuxs/index.tsx +@@ -10,7 +10,7 @@ import {type AppBskyActorDefs} from '@atproto/api' + + import {useGate} from '#/lib/statsig/statsig' + import {logger} from '#/logger' +-import {isNative} from '#/platform/detection' ++// import {isNative} from '#/platform/detection' + import {STALE} from '#/state/queries' + import {Nux, useNuxs, useResetNuxs, useSaveNux} from '#/state/queries/nuxs' + import { +@@ -24,8 +24,8 @@ import {isSnoozed, snooze, unsnooze} from '#/components/dialogs/nuxs/snoozing' + /* + * NUXs + */ +-import {FindContactsAnnouncement} from './FindContactsAnnouncement' +-import {isExistingUserAsOf} from './utils' ++// import {FindContactsAnnouncement} from './FindContactsAnnouncement' ++// import {isExistingUserAsOf} from './utils' + + type Context = { + activeNux: Nux | undefined +@@ -41,15 +41,7 @@ const queuedNuxs: { + preferences: UsePreferencesQueryResponse + }) => boolean + }[] = [ +- { +- id: Nux.FindContactsAnnouncement, +- enabled: ({currentProfile}) => { +- return ( +- isNative && +- isExistingUserAsOf('2025-12-16T00:00:00.000Z', currentProfile.createdAt) +- ) +- }, +- }, ++ // FindContactsAnnouncement disabled for syu.is + ] + + const Context = createContext({ +@@ -188,9 +180,7 @@ function Inner({ + return ( + + {/*For example, activeNux === Nux.NeueTypography && */} +- {activeNux === Nux.FindContactsAnnouncement && ( +- +- )} ++ {/* FindContactsAnnouncement disabled for syu.is */} + + ) + } diff --git a/ios/setup.zsh b/ios/setup.zsh index a14c7f2..2ce3727 100755 --- a/ios/setup.zsh +++ b/ios/setup.zsh @@ -45,6 +45,7 @@ PATCH_FILES_IOS=( "032-social-app-ios-feed-loggedout.patch" "033-social-app-ios-hide-profile-tabs.patch" "036-social-app-ios-homeheader-loggedout.patch" + "037-social-app-ios-disable-contacts-nux.patch" ) function ios-env() {