HomePhabricator
Diffusion Comm 9360b1f7fff5

[lib] Wait with processing inbound messages for Tunnelbroker connection

Description

[lib] Wait with processing inbound messages for Tunnelbroker connection

Summary:
https://linear.app/comm/issue/ENG-9804/wait-with-processing-inbound-messages-for-tunnelbroker-connection

Depends on D13802

Test Plan:

  1. Comment out code in removeInboundP2PMessages() function
  2. Send some messages
  3. Now getAllInboundP2PMessages() should always return something
  4. Restart the app
  5. Verify that:
  6. before the patch in the logs there are errors like "Error while sending confirmation: Tunnelbroker not connected [Error: Tunnelbroker not connected]"
  7. after the patch the errors should disappear

Reviewers: tomek, kamil

Reviewed By: kamil

Subscribers: ashoat

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