diff options
Diffstat (limited to 'src/view/screens/Notifications.tsx')
-rw-r--r-- | src/view/screens/Notifications.tsx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/view/screens/Notifications.tsx b/src/view/screens/Notifications.tsx index b046ee1b7..f1a9e8bf0 100644 --- a/src/view/screens/Notifications.tsx +++ b/src/view/screens/Notifications.tsx @@ -61,13 +61,13 @@ export const Notifications = ({navIdx, visible}: ScreenParams) => { // = useEffect(() => { if (!visible) { + // mark read when the user leaves the screen + store.me.notifications.markAllRead() return } store.log.debug('NotificationsScreen: Updating feed') const softResetSub = store.onScreenSoftReset(scrollToTop) - store.me.notifications.update().then(() => { - store.me.notifications.markAllRead() - }) + store.me.notifications.update() screen('Notifications') store.nav.setTitle(navIdx, 'Notifications') return () => { |