HomePhabricator
Diffusion Comm c5dc4cd1873a

[lib] move processing `MESSAGE_TO_DEVICE` to a component

Description

[lib] move processing MESSAGE_TO_DEVICE to a component

Summary:

  1. Cleans messy TunnelbrokerContext
  2. Makes it possible to convert peerToPeerMessageHandler to a hook and avoids passing a lot of callbacks as arguments
  3. Makes it possible to call sendMessage from peerToPeerMessageHandler (needed to implement ENG-7837).

Test Plan: Flow - this is just moving code to a child component. Functionality tested later in the stack.

Reviewers: bartek, tomek

Reviewed By: bartek, tomek

Subscribers: ashoat

Differential Revision: https://phab.comm.dev/D12371

Details

Provenance
kamilAuthored on Jun 10 2024, 4:09 AM
Reviewer
bartek
Differential Revision
D12371: [lib] move processing `MESSAGE_TO_DEVICE` to a component
Parents
rCOMM36192d5aac81: [lib] make `signedDeviceList` in `DEVICE_LIST_UPDATED` message optional
Branches
Unknown
Tags
Unknown