about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorSamuel Newman <mozzius@protonmail.com>2024-05-21 18:49:46 +0100
committerGitHub <noreply@github.com>2024-05-21 12:49:46 -0500
commit7334e9fd81bc22e15356e1c217a9a94779544a36 (patch)
tree37858e099599f2606fe47c2b9b39a1468fea6558 /src
parente5a1472974da22deeef772c9590de8622ba3895b (diff)
downloadvoidsky-7334e9fd81bc22e15356e1c217a9a94779544a36.tar.zst
close loggedout view when logging in (#4154)
Diffstat (limited to 'src')
-rw-r--r--src/screens/Login/LoginForm.tsx3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/screens/Login/LoginForm.tsx b/src/screens/Login/LoginForm.tsx
index 58c100294..dfa10668b 100644
--- a/src/screens/Login/LoginForm.tsx
+++ b/src/screens/Login/LoginForm.tsx
@@ -19,6 +19,7 @@ import {cleanError} from '#/lib/strings/errors'
 import {createFullHandle} from '#/lib/strings/handles'
 import {logger} from '#/logger'
 import {useSessionApi} from '#/state/session'
+import {useLoggedOutViewControls} from '#/state/shell/logged-out'
 import {useRequestNotificationsPermission} from 'lib/notifications/notifications'
 import {atoms as a, useTheme} from '#/alf'
 import {Button, ButtonIcon, ButtonText} from '#/components/Button'
@@ -67,6 +68,7 @@ export const LoginForm = ({
   const {_} = useLingui()
   const {login} = useSessionApi()
   const requestNotificationsPermission = useRequestNotificationsPermission()
+  const {setShowLoggedOut} = useLoggedOutViewControls()
 
   const onPressSelectService = React.useCallback(() => {
     Keyboard.dismiss()
@@ -113,6 +115,7 @@ export const LoginForm = ({
         },
         'LoginForm',
       )
+      setShowLoggedOut(false)
       requestNotificationsPermission('Login')
     } catch (e: any) {
       const errMsg = e.toString()