diff options
author | Paul Frazee <pfrazee@gmail.com> | 2023-11-07 16:39:13 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-07 16:39:13 -0800 |
commit | 2acc88e78df1c1f4c21bf9a333f3432781a64135 (patch) | |
tree | e331e9c7f79441f2643f1b7f13b00563baea2899 /src/state/models/ui/shell.ts | |
parent | 96d8faf4b052060b8774ac38c3400ab7d75451ad (diff) | |
download | voidsky-2acc88e78df1c1f4c21bf9a333f3432781a64135.tar.zst |
Move reminders to new persisted state layer (#1834)
Diffstat (limited to 'src/state/models/ui/shell.ts')
-rw-r--r-- | src/state/models/ui/shell.ts | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/state/models/ui/shell.ts b/src/state/models/ui/shell.ts index d39131629..343fff86d 100644 --- a/src/state/models/ui/shell.ts +++ b/src/state/models/ui/shell.ts @@ -7,6 +7,10 @@ import {ImageModel} from '../media/image' import {ListModel} from '../content/list' import {GalleryModel} from '../media/gallery' import {StyleProp, ViewStyle} from 'react-native' +import { + shouldRequestEmailConfirmation, + setEmailConfirmationRequested, +} from '#/state/shell/reminders' export type ColorMode = 'system' | 'light' | 'dark' @@ -358,9 +362,14 @@ export class ShellUiModel { setupLoginModals() { this.rootStore.onSessionReady(() => { - if (this.rootStore.reminders.shouldRequestEmailConfirmation) { + if ( + shouldRequestEmailConfirmation( + this.rootStore.session, + this.rootStore.onboarding, + ) + ) { this.openModal({name: 'verify-email', showReminder: true}) - this.rootStore.reminders.setEmailConfirmationRequested() + setEmailConfirmationRequested() } }) } |