mirror of
https://github.com/stablyai/orca.git
synced 2026-10-17 00:03:08 +00:00
fix: don't log expected probe rejections while polling for permission
Co-authored-by: Orca <help@stably.ai>
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 83 KiB |
@@ -170,8 +170,10 @@ function probeNotificationDelivery(store: Store): Promise<NotificationDeliveryPr
|
||||
}
|
||||
}
|
||||
|
||||
function onFailed(_event: unknown, error?: string): void {
|
||||
logNativeNotificationFailure('delivery probe', error)
|
||||
function onFailed(_event: unknown, _error?: string): void {
|
||||
// Why: a rejected probe is an expected outcome (denied permission), not
|
||||
// an anomaly — logging it would spam the console on every poll while
|
||||
// the onboarding card waits for the user to allow notifications.
|
||||
settle('blocked')
|
||||
releaseProbe()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user