Bluesky app fork with some witchin' additions 💫

Check for network error before reporting push token issue (#9258)

authored by

Eric Bailey and committed by
GitHub
6f31121e 1abc9631

+4 -1
+4 -1
src/lib/notifications/notifications.ts
··· 7 7 8 8 import {PUBLIC_APPVIEW_DID, PUBLIC_STAGING_APPVIEW_DID} from '#/lib/constants' 9 9 import {logger as notyLogger} from '#/lib/notifications/util' 10 + import {isNetworkError} from '#/lib/strings/errors' 10 11 import {isNative} from '#/platform/detection' 11 12 import {useAgeAssuranceContext} from '#/state/ageAssurance' 12 13 import {type SessionAccount, useAgent, useSession} from '#/state/session' ··· 47 48 48 49 notyLogger.debug(`registerPushToken: success`) 49 50 } catch (error) { 50 - notyLogger.error(`registerPushToken: failed`, {safeMessage: error}) 51 + if (!isNetworkError(error)) { 52 + notyLogger.error(`registerPushToken: failed`, {safeMessage: error}) 53 + } 51 54 } 52 55 } 53 56