diff options
author | Eric Bailey <git@esb.lol> | 2025-06-20 11:30:52 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-06-20 09:30:52 -0700 |
commit | aeafb14fb41ad15f4093e9c3d7fed23702e56f4f (patch) | |
tree | 56fad6e59f65bca7a535a43f125490af5a18c0e5 /src/lib/hooks | |
parent | 4c75b568dfad4f44d4df76f44236bb1c9acd89a4 (diff) | |
download | voidsky-aeafb14fb41ad15f4093e9c3d7fed23702e56f4f.tar.zst |
Couple of Sentry cleanups (#8532)
* Temp ignore a couple logs * Add debug for unknown notifications * Nvm let's do this in Sentry * Downgrade two DMs network related issues * Check for network errors before sending in Convo * Do the same for event bus * Fix mistake
Diffstat (limited to 'src/lib/hooks')
-rw-r--r-- | src/lib/hooks/useNotificationHandler.ts | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/lib/hooks/useNotificationHandler.ts b/src/lib/hooks/useNotificationHandler.ts index 3a3d0156e..311f38a79 100644 --- a/src/lib/hooks/useNotificationHandler.ts +++ b/src/lib/hooks/useNotificationHandler.ts @@ -322,7 +322,19 @@ export function useNotificationsHandler() { const payload = e.notification.request.trigger .payload as NotificationPayload - if (!payload) return + if (!payload) { + logger.error('useNotificationsHandler: received no payload', { + identifier: e.notification.request.identifier, + }) + return + } + if (!payload.reason) { + logger.error('useNotificationsHandler: received unknown payload', { + payload, + identifier: e.notification.request.identifier, + }) + return + } logger.debug( 'User pressed a notification, opening notifications tab', |