HomePhabricator
Diffusion Comm b51dd5e5ad70

[lib] Make sure PeerToPeerMessageHandler is run after persisted state is read

Description

[lib] Make sure PeerToPeerMessageHandler is run after persisted state is read

Summary:
https://linear.app/comm/issue/ENG-9803/make-sure-peertopeermessagehandler-run-after-persisted-state-is-read

Depends on D13814

Test Plan:

  1. Use logs to verify if PeerToPeerMessageHandler waits for persisted state
  2. Comment out sqliteAPI.removeInboundP2PMessages and send some messages and restart the app
  3. Errors like invalid operation should appear
  4. After this patch there should be less of them

Reviewers: tomek, kamil, ashoat

Reviewed By: ashoat

Subscribers: ashoat

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

Details

Provenance
angelikaAuthored on Tue, Oct 29, 3:42 PM
Reviewer
ashoat
Differential Revision
D13802: [lib] Make sure PeerToPeerMessageHandler is run after persisted state is read
Parents
rCOMM93fb2e536ff6: [lib] Add `canProcess` parameter to `useActionsQueue`
Branches
Unknown
Tags
Unknown