From 9ed483abf700d89b1854870717b052657586d613 Mon Sep 17 00:00:00 2001 From: Matthew Remmel Date: Fri, 26 Sep 2025 14:20:43 -0400 Subject: [PATCH] Ignore exception from if failing to set badge --- src/app/util/notifications.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/app/util/notifications.ts b/src/app/util/notifications.ts index e437b8c5..0f3cb967 100644 --- a/src/app/util/notifications.ts +++ b/src/app/util/notifications.ts @@ -165,7 +165,11 @@ export const badgeCount = derived(notifications, notifications => { export const handleBadgeCountChanges = async (count: number) => { if (get(userSettingsValues).show_notifications_badge) { - await Badge.set({count}) + try { + await Badge.set({count}) + } catch (err) { + // failed to set badge + } } else { await clearBadges() }