Page MenuHomePhabricator

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

Authored by tomek on Tue, Jan 7, 1:21 AM.
Tags
None
Referenced Files
F3878940: D14182.diff
Thu, Jan 23, 3:59 PM
Unknown Object (File)
Mon, Jan 20, 5:48 PM
Unknown Object (File)
Fri, Jan 17, 5:58 PM
Unknown Object (File)
Fri, Jan 17, 8:22 AM
Unknown Object (File)
Fri, Jan 17, 6:31 AM
Unknown Object (File)
Tue, Jan 14, 7:10 PM
Unknown Object (File)
Tue, Jan 14, 6:46 PM
Unknown Object (File)
Mon, Jan 13, 3:05 PM
Subscribers

Details

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