diff options
author | Eric Bailey <git@esb.lol> | 2025-09-04 19:36:23 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-09-04 19:36:23 -0500 |
commit | c129108b786a3389181c401b0bdfe1a3de528ebb (patch) | |
tree | e075d0c41c8829d9c0b66464ba7cb86dd105be4e /src/lib/notifications/notifications.ts | |
parent | 0b480bdaf862b0f93ed480589f81433bd6c93126 (diff) | |
download | voidsky-c129108b786a3389181c401b0bdfe1a3de528ebb.tar.zst |
108 fixes (#8977)
* Translation comment * Fix error handling in starter pack generation * Allow access to DM settings for age restricted users * Leave post stat unit formatting up to translators
Diffstat (limited to 'src/lib/notifications/notifications.ts')
-rw-r--r-- | src/lib/notifications/notifications.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/notifications/notifications.ts b/src/lib/notifications/notifications.ts index 67a38a52c..03dc4726f 100644 --- a/src/lib/notifications/notifications.ts +++ b/src/lib/notifications/notifications.ts @@ -11,6 +11,7 @@ import {isNative} from '#/platform/detection' import {useAgeAssuranceContext} from '#/state/ageAssurance' import {type SessionAccount, useAgent, useSession} from '#/state/session' import BackgroundNotificationHandler from '#/../modules/expo-background-notification-handler' +import {IS_DEV} from '#/env' /** * @private @@ -129,7 +130,7 @@ export function useGetAndRegisterPushToken() { }: { isAgeRestricted?: boolean } = {}) => { - if (!isNative) return + if (!isNative || IS_DEV) return /** * This will also fire the listener added via `addPushTokenListener`. That |