HomePhabricator
Diffusion Comm 6e8a60ade6ed

[native] implement hook for restore

Tags
None
Referenced Files
F3419152: image.png
Wed, Dec 11, 5:39 AM
File Not Attached
Subscribers
None

Description

[native] implement hook for restore

Summary:
ENG-8195.

Implementing a hook for user restore, similar to the password/wallet user login.

Depends on D14082

Test Plan:

  1. Use this hook in LogInPanel instead of usePasswordLogIn.
  2. Add a bunch of logs.
  3. Register a new Account and add a different user as a friend.
  4. Log out using v2.
  5. Log in (which executed restore).
  6. Look at logs - all steps passed.
  7. The user is visually logged in, and everything works.
  8. On other user observer logs, the device list is updated, but it's not passing validation (which is expected because of D14079). After D14079 is deployed, validation should pass.

EDIT: Tested after Identity deploy, it works!

image.png (308×837 px, 114 KB)

Reviewers: bartek, tomek, varun

Reviewed By: tomek

Subscribers: ashoat

Differential Revision: https://phab.comm.dev/D14083

Details

Provenance
kamilAuthored on Thu, Dec 5, 4:45 AM
Reviewer
tomek
Differential Revision
D14083: [native] implement hook for restore
Parents
rCOMMc20f2b65d0b4: [native] implement Restore protocol for Signed Device List
Branches
Unknown
Tags
Unknown