HomePhabricator
Diffusion Comm 5a3d21073c3e

[native][web] Expose new store to the JS layer

Description

[native][web] Expose new store to the JS layer

Summary:
JSI and shared worker code that allows calling the operations from JS.

Depends on D14448

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

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/D14449

Details

Provenance
tomekAuthored on Wed, Mar 12, 10:36 AM
Reviewer
kamil
Differential Revision
D14449: [native][web] Expose new store to the JS layer
Parents
rCOMM82b8d0bfc247: [native] Add DMOperation operations to the C++ layer
Branches
Loading...
Tags
Loading...