diff --git a/lib/utils/farcaster-utils.js b/lib/utils/farcaster-utils.js --- a/lib/utils/farcaster-utils.js +++ b/lib/utils/farcaster-utils.js @@ -11,6 +11,8 @@ import { syncedMetadataNames } from '../types/synced-metadata-types.js'; import { useSelector, useDispatch } from '../utils/redux-utils.js'; +const DISABLE_CONNECT_FARCASTER_ALERT = true; + function useCurrentUserFID(): ?string { return useSelector( state => @@ -66,4 +68,9 @@ }, [dispatch, unlinkFarcasterAccount]); } -export { useCurrentUserFID, useLinkFID, useUnlinkFID }; +export { + DISABLE_CONNECT_FARCASTER_ALERT, + useCurrentUserFID, + useLinkFID, + useUnlinkFID, +}; diff --git a/lib/utils/push-alerts.js b/lib/utils/push-alerts.js --- a/lib/utils/push-alerts.js +++ b/lib/utils/push-alerts.js @@ -2,7 +2,7 @@ import type { AlertInfo } from '../types/alert-types.js'; import { isDev } from '../utils/dev-utils.js'; -import { usingCommServicesAccessToken } from '../utils/services-utils.js'; +import { DISABLE_CONNECT_FARCASTER_ALERT } from '../utils/farcaster-utils.js'; const msInDay = 24 * 60 * 60 * 1000; @@ -22,7 +22,7 @@ // with this alert. return ( isDev || - !usingCommServicesAccessToken || + DISABLE_CONNECT_FARCASTER_ALERT || alertInfo.lastAlertTime > Date.now() - msInDay ); }