HomePhabricator
Diffusion Comm 6269b7df59c6

[web/native] Add content outbound session to olmAPI

Description

[web/native] Add content outbound session to olmAPI

Summary:
Part of ENG-6657 : Migrate session creation code to shared worker

This corresponds to contentSessionCreator from OlmSessionCreatorContext. Now that the crypto store is in the shared worker we have to use non-react code to create outbound sessions. This diff adds a new method to olmAPI that handles that. On native it just calls out to the native code implementation. On web shared worker the implementation is taken from OlmSessionCreatorContext (which is going to be removed in a future diff), only modified to use the global shared worker crypto store instead of unpickling data from redux.

Depends on D11338

Test Plan: Tested that peer to peer communication works with web as the outbound. Didn't test native as it just uses the native code implementation so it works exactly the same as the existing native context provider.

Reviewers: kamil, tomek

Reviewed By: kamil

Subscribers: ashoat

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

Details

Provenance
Michal Gniadek <michal.gniadek@swmansion.com>Authored on Mar 14 2024, 6:35 AM
Reviewer
kamil
Differential Revision
D11339: [web/native] Add content outbound session to olmAPI
Parents
rCOMMb46454f32943: [web] olmAPI on shared worker
Branches
Unknown
Tags
Unknown

Event Timeline