Fix: poll for unread notifications globally (close #303) (#330)

zio/stable
Paul Frazee 2023-03-20 16:18:42 -05:00 committed by GitHub
parent 8a3601c07c
commit 91b360fd19
1 changed files with 1 additions and 0 deletions

View File

@ -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)