fix: notification dot not working (for the final time)

This commit is contained in:
Xylight committed 2024-03-09 11:30:09 -08:00
1 parent 1adcfbe37d
commit f0877b8f66
1 file changed
+7 -1
+7 -1
View File
@@ -400,5 +400,11 @@ async function checkInbox() {
}
setInterval(checkInbox, 4 * 60 * 1000)
checkInbox()
let prevId: number | undefined = -2
profile.subscribe((p) => {
if (p?.id == prevId || !p?.user) return
prevId = p?.id
if (p.id != -1) checkInbox()
})