fix: notification dot not working (for the final time)
This commit is contained in:
1 parent
1adcfbe37d
commit
f0877b8f66
1 file changed
+7
-1
+7
-1
@@ -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()
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user