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() }