We need a way to check whether the user data has finished restoring, and we can exit the loading screen and display the app UI to the user.
Details
Details
- Reviewers
kamil - Commits
- rCOMM4288f239a102: [lib] Add hook to check if restoration finished
This is tested in next diffs, they heavily rely on this hook.
Diff Detail
Diff Detail
- Repository
- rCOMM Comm
- Lint
No Lint Coverage - Unit
No Test Coverage
Event Timeline
Comment Actions
Update stub with actual list of states. This solution is sufficient for now, and the hook is easily adaptable to changes of this logic during further backup work.
| lib/hooks/backup-hooks.js | ||
|---|---|---|
| 10 ↗ | (On Diff #48716) | Shouldn't we also add user_data_restore_failed here? I know we want a different screen in that case, but looking at next diffs, it might be good to dismiss LoggedOutModal |
| lib/hooks/backup-hooks.js | ||
|---|---|---|
| 10 ↗ | (On Diff #48716) | No, all QR auth / restoration error screens are inside the auth nav tree, they're displayed when LoggedOutModal is active |