Add naive badge count implementation

This commit is contained in:
Matthew Remmel
2025-09-23 11:34:53 -04:00
committed by hodlbod
parent 5cb22d0bed
commit d1e5aee84e
3 changed files with 37 additions and 2 deletions
+5
View File
@@ -20,6 +20,7 @@
playAlertSound,
} from "@app/core/state"
import {deleteAlert, createDmAlert} from "@app/core/commands"
import {clearBadges} from "../util/notifications"
type Props = {
url?: string
@@ -74,6 +75,10 @@
const onShowBadgeOnUnreadToggle = async () => {
$showUnreadBadge = !$showUnreadBadge
if (!$showUnreadBadge) {
clearBadges()
}
}
const onDirectMessagesNotificationSoundToggle = async () => {