HomePhabricator
Diffusion Comm 64bf51bbef0f

[web] Add support for DM operations to the shared worker

Description

[web] Add support for DM operations to the shared worker

Summary:
Handle the new operations on the shared worker.

https://linear.app/comm/issue/ENG-10334/update-jsi-and-web-worker-code-to-support-new-db-operations

Depends on D14450

Test Plan:
Tested the whole stack on both native and web:

  1. Run the app on Redux version 86 with a modification to processDMOperation making all the INBOUND messages unsupported
  2. On one platform created a thread and sent a text message. These were visible on the sender, and invisible on the recipient
  3. Closed the recipient and added a migration that unshimms the thread creation operations, e.g.
unshimDMOperations(
  state,
  dmOperationTypes.CREATE_THREAD,
  handleReduxMigrationFailure,
): MigrationFunction<WebNavInfo, AppState>),
  1. Run the recipient and noticed the thread appearing
  2. Added another migration, this time unshimming text messages
  3. Run the recipient and noticed messages appearing

Reviewers: kamil, bartek

Reviewed By: kamil

Subscribers: ashoat

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

Details

Provenance
tomekAuthored on Thu, Mar 13, 5:33 AM
Reviewer
kamil
Differential Revision
D14451: [web] Add support for DM operations to the shared worker
Parents
rCOMMbe6f046a270a: [web] Add SQLite query executor tests
Branches
Loading...
Tags
Loading...