diff options
Diffstat (limited to 'src/App.native.tsx')
-rw-r--r-- | src/App.native.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/App.native.tsx b/src/App.native.tsx index 2c880f217..36944aa91 100644 --- a/src/App.native.tsx +++ b/src/App.native.tsx @@ -19,8 +19,8 @@ import {init as initPersistedState} from '#/state/persisted' import * as persisted from '#/state/persisted' import {Provider as LabelDefsProvider} from '#/state/preferences/label-defs' import {useIntentHandler} from 'lib/hooks/useIntentHandler' +import {useNotificationsListener} from 'lib/notifications/notifications' import {useOTAUpdates} from 'lib/hooks/useOTAUpdates' -import * as notifications from 'lib/notifications/notifications' import { asyncStoragePersister, dehydrateOptions, @@ -61,11 +61,11 @@ function InnerApp() { const theme = useColorModeTheme() const {_} = useLingui() useIntentHandler() + useNotificationsListener(queryClient) useOTAUpdates() // init useEffect(() => { - notifications.init(queryClient) listenSessionDropped(() => { Toast.show(_(msg`Sorry! Your session expired. Please log in again.`)) }) |