Page MenuHomePhabricator

[lib][native] Send backup keys in QR auth only if requested
ClosedPublic

Authored by bartek on Thu, Jun 6, 2:01 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Jun 24, 3:37 AM
Unknown Object (File)
Fri, Jun 21, 6:23 AM
Unknown Object (File)
Fri, Jun 21, 6:23 AM
Unknown Object (File)
Fri, Jun 21, 6:23 AM
Unknown Object (File)
Fri, Jun 21, 6:23 AM
Unknown Object (File)
Thu, Jun 20, 9:32 PM
Unknown Object (File)
Mon, Jun 17, 5:42 AM
Unknown Object (File)
Sat, Jun 15, 5:26 AM
Subscribers

Details

Summary

Addresses ENG-8225.
Added a boolean to SECONDARY_DEVICE_REGISTRATION_SUCCESS message that determines if backup keys should be sent.
For keyserver, it can be set to false in D12213.

Test Plan

QR login on native and web. Verified that backup keys are sent, unless hardcoding the flag to false.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

bartek held this revision as a draft.
bartek published this revision for review.Thu, Jun 6, 5:56 AM
bartek added inline comments.
native/profile/secondary-device-qr-code-scanner.react.js
118–120 ↗(On Diff #41033)

Need this for Flow to properly recognize payload type

native/profile/secondary-device-qr-code-scanner.react.js
128–152 ↗(On Diff #41033)

I would reverse this condition and reduce indentation. See here

Otherwise seems reasonable

This revision is now accepted and ready to land.Thu, Jun 6, 10:45 AM

Reverse condition to reduce indent

native/profile/secondary-device-qr-code-scanner.react.js
123 ↗(On Diff #41367)

You missed a return here, so now this diff doesn't really do what it was supposed to (backup logic still executes)

This revision is now accepted and ready to land.Mon, Jun 17, 6:38 AM

Add missing return statement