HomePhabricator
Diffusion Comm 9b33c8f7a408

[lib] update types to allow missing OTK when creating session

Description

[lib] update types to allow missing OTK when creating session

Summary:
Modifying types and callsites to reflect new olm API.

Depends on D12203

Test Plan:
Tested end-to-end:

  1. Tested content session with OTKs on both web and native
  2. Tested content session without OTKs on both web native
  3. Tested notifs
  4. Tested backward compatibility: @marcin was running his devices logged to staging on old olm version, and I was running the new version (this stack). WIth one OTKs it works as previously (tested both me and Marcin sending requests to each other and tested both platform). When there are no OTKs Marcin was unable to create a session request (same as now), I was able to create a session request, but it failed on Martin’s device with BAD_MESSAGE_KEY_ID but without crashing the app.

Reviewers: marcin, tomek

Reviewed By: tomek

Subscribers: ashoat, marcin

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

Details

Provenance
kamilAuthored on Thu, May 23, 4:07 AM
Reviewer
tomek
Differential Revision
D12204: [lib] update types to allow missing OTK when creating session
Parents
rCOMM4fa54458b461: [web] update `olm` API to allow creating session without OTKs
Branches
Unknown
Tags
Unknown