Page MenuHomePhabricator

[lib][p2p] Update device list upon receiving logout message
ClosedPublic

Authored by bartek on May 28 2024, 4:28 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Jun 27, 11:19 AM
Unknown Object (File)
Thu, Jun 27, 11:18 AM
Unknown Object (File)
Thu, Jun 27, 11:18 AM
Unknown Object (File)
Fri, Jun 21, 3:12 AM
Unknown Object (File)
Wed, Jun 19, 9:48 PM
Unknown Object (File)
Sat, Jun 15, 8:33 AM
Unknown Object (File)
Fri, Jun 14, 3:31 PM
Unknown Object (File)
Thu, Jun 13, 8:04 PM
Subscribers

Details

Summary

Updated p2p message handler to remove device from device list upon receiving logout message

Depends on D12224

Test Plan

In addition to test plan from D12224:

  • Verified Identity Service logs to see that update_device_list is called
  • Verified that DDB contains updated device list without secondary device ID (being a sender of the message handled here)

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

bartek held this revision as a draft.
bartek retitled this revision from [DRAFT] Update device list upon receiving logout message to [lib][p2p] Update device list upon receiving logout message.May 29 2024, 9:58 AM
bartek edited the test plan for this revision. (Show Details)
bartek published this revision for review.May 29 2024, 10:16 AM
bartek added inline comments.
lib/handlers/peer-to-peer-message-handler.js
127 ↗(On Diff #40755)

This will be handled by ENG-7837. I don't want to copy-paste code from native/secondary-device-qr-code-scanner.js which is about to be changed as a result of tasks from the linked project

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