feat: continue your session and link device to I have an account

pull/3056/head
William Grant 2 years ago
parent 68f8d12aa5
commit 825c617794

@ -98,7 +98,6 @@
"contactsHeader": "Contacts", "contactsHeader": "Contacts",
"contextMenuNoSuggestions": "No Suggestions", "contextMenuNoSuggestions": "No Suggestions",
"continue": "Continue", "continue": "Continue",
"continueYourSession": "Continue Your Session",
"conversationsHeader": "Contacts and Groups: $count$", "conversationsHeader": "Contacts and Groups: $count$",
"conversationsNone": "You don't have any conversations yet", "conversationsNone": "You don't have any conversations yet",
"conversationsSettingsTitle": "Conversations", "conversationsSettingsTitle": "Conversations",
@ -270,7 +269,6 @@
"leaving": "Leaving...", "leaving": "Leaving...",
"leftTheGroup": "$name$ has left the group.", "leftTheGroup": "$name$ has left the group.",
"lightboxImageAlt": "Image sent in conversation", "lightboxImageAlt": "Image sent in conversation",
"linkDevice": "Link Device",
"linkPreviewDescription": "Generate link previews for supported URLs.", "linkPreviewDescription": "Generate link previews for supported URLs.",
"linkPreviewsConfirmMessage": "You will not have full metadata protection when sending link previews.", "linkPreviewsConfirmMessage": "You will not have full metadata protection when sending link previews.",
"linkPreviewsTitle": "Send Link Previews", "linkPreviewsTitle": "Send Link Previews",

@ -36,14 +36,14 @@ export const useRecoveryProgressEffect = (props: UseRecoveryProgressEffectProps)
dispatch(setProgress(progress + 1)); dispatch(setProgress(progress + 1));
} }
window.log.debug( window.log.debug(
`WIP: [continueYourSession] AccountRestoration.Loading Loading progress ${progress}%` `WIP: [useRecoveryProgressEffect] AccountRestoration.Loading Loading progress ${progress}%`
); );
if (progress >= 100) { if (progress >= 100) {
clearInterval(interval); clearInterval(interval);
// if we didn't get the display name in time, we need to enter it manually // if we didn't get the display name in time, we need to enter it manually
window.log.debug( window.log.debug(
`WIP: [continueYourSession] AccountRestoration.Loading We didn't get the display name in time, so we need to enter it manually` `WIP: [useRecoveryProgressEffect] AccountRestoration.Loading We didn't get the display name in time, so we need to enter it manually`
); );
dispatch(setAccountRestorationStep(AccountRestoration.DisplayName)); dispatch(setAccountRestorationStep(AccountRestoration.DisplayName));
} }
@ -56,7 +56,7 @@ export const useRecoveryProgressEffect = (props: UseRecoveryProgressEffectProps)
dispatch(setProgress(progress + 1)); dispatch(setProgress(progress + 1));
} }
window.log.debug( window.log.debug(
`WIP: [continueYourSession] AccountRestoration. Finishing progress ${progress}%` `WIP: [useRecoveryProgressEffect] AccountRestoration. Finishing progress ${progress}%`
); );
if (progress >= 100) { if (progress >= 100) {
@ -71,13 +71,13 @@ export const useRecoveryProgressEffect = (props: UseRecoveryProgressEffectProps)
clearInterval(interval); clearInterval(interval);
if (!isEmpty(displayName)) { if (!isEmpty(displayName)) {
window.log.debug( window.log.debug(
`WIP: [continueYourSession] AccountRestoration.Complete Finished progress` `WIP: [useRecoveryProgressEffect] AccountRestoration.Complete Finished progress`
); );
dispatch(setAccountRestorationStep(AccountRestoration.Complete)); dispatch(setAccountRestorationStep(AccountRestoration.Complete));
} else { } else {
dispatch(setAccountRestorationStep(AccountRestoration.DisplayName)); dispatch(setAccountRestorationStep(AccountRestoration.DisplayName));
window.log.debug( window.log.debug(
`WIP: [continueYourSession] AccountRestoration.DisplayName failed to fetch display name so we need to enter it manually` `WIP: [useRecoveryProgressEffect] AccountRestoration.DisplayName failed to fetch display name so we need to enter it manually`
); );
} }
}, ONBOARDING_TIMES.RECOVERY_FINISHED); }, ONBOARDING_TIMES.RECOVERY_FINISHED);
@ -87,7 +87,7 @@ export const useRecoveryProgressEffect = (props: UseRecoveryProgressEffectProps)
clearInterval(interval); clearInterval(interval);
if (!isEmpty(displayName)) { if (!isEmpty(displayName)) {
window.log.debug( window.log.debug(
`WIP: [continueYourSession] AccountRestoration.Complete opening inbox for ${displayName}` `WIP: [useRecoveryProgressEffect] AccountRestoration.Complete opening inbox for ${displayName}`
); );
trigger('openInbox'); trigger('openInbox');
} }

@ -102,7 +102,6 @@ export type LocalizerKeys =
| 'contactsHeader' | 'contactsHeader'
| 'contextMenuNoSuggestions' | 'contextMenuNoSuggestions'
| 'continue' | 'continue'
| 'continueYourSession'
| 'conversationsHeader' | 'conversationsHeader'
| 'conversationsNone' | 'conversationsNone'
| 'conversationsSettingsTitle' | 'conversationsSettingsTitle'
@ -269,7 +268,6 @@ export type LocalizerKeys =
| 'leaving' | 'leaving'
| 'leftTheGroup' | 'leftTheGroup'
| 'lightboxImageAlt' | 'lightboxImageAlt'
| 'linkDevice'
| 'linkPreviewDescription' | 'linkPreviewDescription'
| 'linkPreviewsConfirmMessage' | 'linkPreviewsConfirmMessage'
| 'linkPreviewsTitle' | 'linkPreviewsTitle'

Loading…
Cancel
Save