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
This commit is contained in:
Eric Bailey
2025-06-20 11:30:52 -05:00
committed by GitHub
parent 4c75b568df
commit aeafb14fb4
3 changed files with 75 additions and 49 deletions
+13 -1
View File
@@ -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',