fix social-app ios patch start contacts nux
This commit is contained in:
52
ios/patching/037-social-app-ios-disable-contacts-nux.patch
Normal file
52
ios/patching/037-social-app-ios-disable-contacts-nux.patch
Normal file
@@ -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<Context>({
|
||||
@@ -188,9 +180,7 @@ function Inner({
|
||||
return (
|
||||
<Context.Provider value={ctx}>
|
||||
{/*For example, activeNux === Nux.NeueTypography && <NeueTypography />*/}
|
||||
- {activeNux === Nux.FindContactsAnnouncement && (
|
||||
- <FindContactsAnnouncement />
|
||||
- )}
|
||||
+ {/* FindContactsAnnouncement disabled for syu.is */}
|
||||
</Context.Provider>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user