about summary refs log tree commit diff
path: root/src/state/models/notifications-view.ts
diff options
context:
space:
mode:
authorPaul Frazee <pfrazee@gmail.com>2022-11-16 14:36:16 -0600
committerPaul Frazee <pfrazee@gmail.com>2022-11-16 14:36:16 -0600
commitbd1a4b198e3682f96354d83f1e1efccf31813f82 (patch)
tree1170a844d2eed7d2f107b9ec71fc9c5fecf418f4 /src/state/models/notifications-view.ts
parent92046473f8c1cff4105e9269fb01d889b26156ae (diff)
downloadvoidsky-bd1a4b198e3682f96354d83f1e1efccf31813f82.tar.zst
Clear notifications count optimistically
Diffstat (limited to 'src/state/models/notifications-view.ts')
-rw-r--r--src/state/models/notifications-view.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/state/models/notifications-view.ts b/src/state/models/notifications-view.ts
index c328be62b..b841c7f3a 100644
--- a/src/state/models/notifications-view.ts
+++ b/src/state/models/notifications-view.ts
@@ -332,6 +332,7 @@ export class NotificationsViewModel {
       await this.rootStore.api.app.bsky.notification.updateSeen({
         seenAt: new Date().toISOString(),
       })
+      this.rootStore.me.clearNotificationCount()
     } catch (e) {
       console.log('Failed to update notifications read state', e)
     }