Page MenuHomePhabricator

[native] Upload secondary device keys when added to list
ClosedPublic

Authored by bartek on Mar 11 2024, 6:18 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, May 8, 12:16 PM
Unknown Object (File)
Thu, Apr 25, 7:23 AM
Unknown Object (File)
Apr 3 2024, 3:41 AM
Unknown Object (File)
Apr 1 2024, 1:00 PM
Unknown Object (File)
Mar 20 2024, 12:38 PM
Unknown Object (File)
Mar 18 2024, 10:44 PM
Unknown Object (File)
Mar 18 2024, 10:22 PM
Unknown Object (File)
Mar 18 2024, 6:05 PM
Subscribers

Details

Summary

After receiving information from primary device about successful device list update, secondary device should perform device keys upload. Then it should be able to start normal authenticated Tunnelbroker session.

Depends on D11294

Test Plan

Repeated test plan from D11294, and also made sure the secondary device keys have been uploaded. Monitored the isAuthorized Tunnelbroker prop - after successful RPC call, it switched to true.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

bartek held this revision as a draft.
bartek edited the test plan for this revision. (Show Details)
bartek published this revision for review.Mar 12 2024, 2:19 AM
kamil added inline comments.
native/qr-code/qr-code-screen.react.js
40 ↗(On Diff #38014)

deviceKeys we have this name in multiple places in codebase and different meanings which makes me a bit confusing - would be good to use something more specific but not sure what is the best option

57 ↗(On Diff #38014)

I think you should use peerToPeerMessageValidator here

101 ↗(On Diff #38014)

I think you can just return undefined?

This revision is now accepted and ready to land.Mar 13 2024, 5:52 AM
native/qr-code/qr-code-screen.react.js
77–79 ↗(On Diff #38125)

Nit: I think this can be simplified

native/qr-code/qr-code-screen.react.js
77–79 ↗(On Diff #38125)

Tried that, L83 fails destructuring