diff options
author | Paul Frazee <pfrazee@gmail.com> | 2023-03-01 16:54:50 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-01 16:54:50 -0600 |
commit | 9b46b2e6a9a8e4e9254fa9031b2eb44a672e287f (patch) | |
tree | 91fa22c6de7d8450a8b55ebac4168390cfc586ce /src/view | |
parent | 1fd2942b9bbb973b72a386c24a9a51aaa50df185 (diff) | |
download | voidsky-9b46b2e6a9a8e4e9254fa9031b2eb44a672e287f.tar.zst |
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
Diffstat (limited to 'src/view')
-rw-r--r-- | src/view/screens/Notifications.tsx | 6 | ||||
-rw-r--r-- | src/view/shell/mobile/index.tsx | 5 |
2 files changed, 8 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 () => { diff --git a/src/view/shell/mobile/index.tsx b/src/view/shell/mobile/index.tsx index 6caf89232..dbfcad0ee 100644 --- a/src/view/shell/mobile/index.tsx +++ b/src/view/shell/mobile/index.tsx @@ -398,6 +398,11 @@ export const MobileShell: React.FC = observer(() => { if (!store.session.hasSession) { return ( <View style={styles.outerContainer}> + <StatusBar + barStyle={ + theme.colorScheme === 'dark' ? 'light-content' : 'dark-content' + } + /> <Login /> <ModalsContainer /> </View> |