Page MenuHomePhabricator

[lib] standarize broadcasting device list update when removing device
ClosedPublic

Authored by kamil on Nov 20 2024, 3:05 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Mar 23, 1:00 PM
Unknown Object (File)
Sun, Mar 23, 12:57 PM
Unknown Object (File)
Fri, Feb 28, 2:57 AM
Unknown Object (File)
Fri, Feb 28, 2:56 AM
Unknown Object (File)
Feb 18 2025, 1:56 PM
Unknown Object (File)
Feb 18 2025, 1:56 PM
Unknown Object (File)
Feb 10 2025, 1:42 PM
Unknown Object (File)
Jan 22 2025, 2:06 PM
Subscribers

Details

Summary

Addressing https://phab.comm.dev/D13963#inline-78590 and https://phab.comm.dev/D13963#inline-78595.

Right now we have the same approach each time:

  1. Sending device list updates to all our peers
  2. Sending device list updates to all our devices that are on the device list, but without the primary device
  3. Call getAndUpdateDeviceListsForUsers for our userID
    • update AuxUserStore
    • get platform details if the device was added

Depends on D13963

Test Plan

Remove secondary device and test if other peers received device list update

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.Nov 20 2024, 3:10 AM
kamil edited the summary of this revision. (Show Details)
lib/shared/device-list-utils.js
345 ↗(On Diff #45894)

We could consider extracting this outside the if branches since it's shared across all branches

356 ↗(On Diff #45894)

Same with this line

This revision is now accepted and ready to land.Nov 20 2024, 4:23 AM