diff options
author | Eric Bailey <git@esb.lol> | 2024-06-18 17:21:34 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-18 17:21:34 -0500 |
commit | 32b40631851c3c3f5ae2400c4bb89e009e71a9da (patch) | |
tree | 810af1880e2fddf1753c2d397b49aafe41148078 /src/Navigation.tsx | |
parent | 853c32b4d8cfe86ed02c688c32fc99e788c33838 (diff) | |
download | voidsky-32b40631851c3c3f5ae2400c4bb89e009e71a9da.tar.zst |
Verify email reminders (#4510)
* Clarify intent * Increase email reminder period to once per day * Fallback * Snooze immediately after account creation, prevent showing right after signup * Fix e2e test exports * Remove redundant check * Better simple date generation * Replace in DateField * Use non-string comparison * Revert change to unrelated code * Also parse * Remove side effect
Diffstat (limited to 'src/Navigation.tsx')
-rw-r--r-- | src/Navigation.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Navigation.tsx b/src/Navigation.tsx index 67b89e262..5d4ba0e3f 100644 --- a/src/Navigation.tsx +++ b/src/Navigation.tsx @@ -54,8 +54,8 @@ import {useModalControls} from './state/modals' import {useUnreadNotifications} from './state/queries/notifications/unread' import {useSession} from './state/session' import { - setEmailConfirmationRequested, shouldRequestEmailConfirmation, + snoozeEmailConfirmationPrompt, } from './state/shell/reminders' import {AccessibilitySettingsScreen} from './view/screens/AccessibilitySettings' import {CommunityGuidelinesScreen} from './view/screens/CommunityGuidelines' @@ -585,7 +585,7 @@ function RoutesContainer({children}: React.PropsWithChildren<{}>) { if (currentAccount && shouldRequestEmailConfirmation(currentAccount)) { openModal({name: 'verify-email', showReminder: true}) - setEmailConfirmationRequested() + snoozeEmailConfirmationPrompt() } } |