Page MenuHomePhabricator

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

Authored by tomek on Tue, Jan 7, 1:21 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Jan 7, 2:38 AM
Unknown Object (File)
Tue, Jan 7, 2:38 AM
Unknown Object (File)
Tue, Jan 7, 2:37 AM
Subscribers

Details

Reviewers
kamil
bartek
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.

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage