about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorPaul Frazee <pfrazee@gmail.com>2023-03-20 16:18:42 -0500
committerGitHub <noreply@github.com>2023-03-20 16:18:42 -0500
commit91b360fd195fbf2c4961abafa597c4ab77e0301a (patch)
tree3934d4979e816b085913508d7b8d9f95001bbde8 /src
parent8a3601c07c693fa85800644f072ab895f3be4242 (diff)
downloadvoidsky-91b360fd195fbf2c4961abafa597c4ab77e0301a.tar.zst
Fix: poll for unread notifications globally (close #303) (#330)
Diffstat (limited to 'src')
-rw-r--r--src/state/models/root-store.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/state/models/root-store.ts b/src/state/models/root-store.ts
index 58cad77b9..03550f1b0 100644
--- a/src/state/models/root-store.ts
+++ b/src/state/models/root-store.ts
@@ -158,6 +158,7 @@ export class RootStoreModel {
       return
     }
     try {
+      await this.me.notifications.loadUnreadCount()
       await this.me.follows.fetchIfNeeded()
     } catch (e: any) {
       this.log.error('Failed to fetch latest state', e)