HomePhabricator
Diffusion Comm 4778815ea6f0

[native] Update device list as a part of the restoration

Description

[native] Update device list as a part of the restoration

Summary:
After the restoration, the device list in the store is empty, which means that the current device can't be recognized as the primary one. To solve that we can update the store as a part of the success restoration action.

https://linear.app/comm/issue/ENG-10033/regenerate-a-new-backup

Depends on D14180

Test Plan: Add some logs to the code that checks if a device is primary and check that it returns true just after the restoration. Also, check the SIWE restoration - a screen on which a new backup is created should be shown just after the restoration - this verifies that the device was successfully recognized as primary because the screen is only shown on the primary devices.

Reviewers: kamil, bartek

Reviewed By: kamil

Subscribers: ashoat

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

Details

Provenance
tomekAuthored on Fri, Jan 3, 7:11 AM
Reviewer
kamil
Differential Revision
D14182: [native] Update device list as a part of the restoration
Parents
rCOMM5b761cf201c9: [native] Fall back to v1 login when the user doesn't have a backup
Branches
Unknown
Tags
Unknown