From 9b46b2e6a9a8e4e9254fa9031b2eb44a672e287f Mon Sep 17 00:00:00 2001 From: Paul Frazee Date: Wed, 1 Mar 2023 16:54:50 -0600 Subject: A couple various fixes (#242) * Fix: set the status bar color for dark mode when logging in * Add some logging * Improve read/unread tracking behaviors in notifications --- src/state/models/notifications-view.ts | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/state/models/notifications-view.ts') diff --git a/src/state/models/notifications-view.ts b/src/state/models/notifications-view.ts index 048de968d..e88af590b 100644 --- a/src/state/models/notifications-view.ts +++ b/src/state/models/notifications-view.ts @@ -405,6 +405,9 @@ export class NotificationsViewModel { try { this.unreadCount = 0 this.rootStore.emitUnreadNotifications(0) + for (const notif of this.notifications) { + notif.isRead = true + } await this.rootStore.api.app.bsky.notification.updateSeen({ seenAt: new Date().toISOString(), }) -- cgit 1.4.1