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
F2134857: D12327.id41397.diff
Fri, Jun 28, 8:55 AM
F2133150: D12327.id41364.diff
Fri, Jun 28, 2:05 AM
Unknown Object (File)
Thu, Jun 27, 8:20 AM
Unknown Object (File)
Thu, Jun 27, 5:16 AM
Unknown Object (File)
Wed, Jun 26, 4:04 PM
Unknown Object (File)
Wed, Jun 26, 10:23 AM
Unknown Object (File)
Mon, Jun 24, 3:37 AM
Unknown Object (File)
Fri, Jun 21, 6:23 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
No Lint Coverage
Unit
No Test Coverage

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

Need this for Flow to properly recognize payload type

native/profile/secondary-device-qr-code-scanner.react.js
128–152

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