Page MenuHomePhabricator

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

Authored by tomek on Jan 7 2025, 1:21 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Mar 9, 8:58 PM
Unknown Object (File)
Sun, Mar 9, 8:58 PM
Unknown Object (File)
Sun, Mar 9, 8:57 PM
Unknown Object (File)
Sun, Mar 9, 8:57 PM
Unknown Object (File)
Feb 23 2025, 6:06 PM
Unknown Object (File)
Feb 12 2025, 12:46 PM
Unknown Object (File)
Feb 6 2025, 3:44 AM
Unknown Object (File)
Feb 6 2025, 3:44 AM
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
Lint Not Applicable
Unit
Tests Not Applicable