diff options
Diffstat (limited to 'src/view/shell')
-rw-r--r-- | src/view/shell/index.tsx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/view/shell/index.tsx b/src/view/shell/index.tsx index f13a8d7df..425c1b3f8 100644 --- a/src/view/shell/index.tsx +++ b/src/view/shell/index.tsx @@ -20,6 +20,7 @@ import { useSetDrawerOpen, } from '#/state/shell' import {useCloseAnyActiveElement} from '#/state/util' +import {useNotificationsHandler} from 'lib/hooks/useNotificationHandler' import {usePalette} from 'lib/hooks/usePalette' import * as notifications from 'lib/notifications/notifications' import {isStateAtTabRoot} from 'lib/routes/helpers' @@ -63,6 +64,8 @@ function ShellInner() { // start undefined const currentAccountDid = React.useRef<string | undefined>(undefined) + useNotificationsHandler() + React.useEffect(() => { let listener = {remove() {}} if (isAndroid) { |