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
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user