about summary refs log tree commit diff
path: root/src/state/shell
diff options
context:
space:
mode:
authordan <dan.abramov@gmail.com>2023-12-06 00:28:11 +0000
committerGitHub <noreply@github.com>2023-12-06 00:28:11 +0000
commitfab9f839d0234d1df7e595f53eff17177f5a9c67 (patch)
tree4a453fea5d587a57d192dd33082e6a280c4d0ce5 /src/state/shell
parente7f973852f0b7f086d7648c4a978c0c46025c2eb (diff)
downloadvoidsky-fab9f839d0234d1df7e595f53eff17177f5a9c67.tar.zst
Fix email confirmation dialog on startup (#2097)
* Move init time logging to a fn, add guard

* Fix email confirmation dialog on startup
Diffstat (limited to 'src/state/shell')
-rw-r--r--src/state/shell/reminders.ts11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/state/shell/reminders.ts b/src/state/shell/reminders.ts
index 88d0a5d85..ee924eb00 100644
--- a/src/state/shell/reminders.ts
+++ b/src/state/shell/reminders.ts
@@ -2,17 +2,6 @@ import * as persisted from '#/state/persisted'
 import {toHashCode} from 'lib/strings/helpers'
 import {isOnboardingActive} from './onboarding'
 import {SessionAccount} from '../session'
-import {listenSessionLoaded} from '../events'
-import {unstable__openModal} from '../modals'
-
-export function init() {
-  listenSessionLoaded(account => {
-    if (shouldRequestEmailConfirmation(account)) {
-      unstable__openModal({name: 'verify-email', showReminder: true})
-      setEmailConfirmationRequested()
-    }
-  })
-}
 
 export function shouldRequestEmailConfirmation(account: SessionAccount) {
   if (!account) {