Page MenuHomePhabricator

[lib] handle `DEVICE_LIST_UPDATED` message
ClosedPublic

Authored by kamil on Mon, Jun 10, 8:52 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Jun 29, 6:47 PM
Unknown Object (File)
Tue, Jun 25, 1:33 PM
Unknown Object (File)
Fri, Jun 21, 2:38 PM
Unknown Object (File)
Fri, Jun 21, 5:59 AM
Unknown Object (File)
Wed, Jun 19, 8:45 PM
Unknown Object (File)
Wed, Jun 19, 12:48 PM
Unknown Object (File)
Mon, Jun 17, 5:35 PM
Unknown Object (File)
Mon, Jun 17, 4:53 PM
Subscribers

Details

Summary

We want to call getAndUpdateDeviceListsForUsers on each request, leaving logs as in D12347

Depends on D12378

Test Plan

Send this message to device and make sure it's processed

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

kamil held this revision as a draft.
kamil published this revision for review.Mon, Jun 10, 9:52 AM
lib/tunnelbroker/use-peer-to-peer-message-handler.js
192 ↗(On Diff #41167)

Noticed that you decided to call this even if !result.valid. Can you share some context around that decision, and what it means if !result.valid?

lib/tunnelbroker/use-peer-to-peer-message-handler.js
192 ↗(On Diff #41167)

This is to leave logs to check if the device list was properly signed by the primary device.

However, currently, there is no full device list support and we have to support legacy Identity auth (that's the case where result.valid = false). I can add a code comment to make it more clear.

This revision is now accepted and ready to land.Thu, Jun 13, 3:15 AM
This revision was automatically updated to reflect the committed changes.