HomePhabricator
Diffusion Comm 7ca1e329cccc

[native] update session creation code to handle versioning

Description

[native] update session creation code to handle versioning

Summary:
This code:

  1. Updates contentInboundSessionCreator to decide whether to accept new or keep old session depending on sessionVersion
  2. Updates contentOutboundSessionCreator to return the session version (right now by default we override session and bump counter).

Depends on D11586

Test Plan:

  1. Make sure session creation works
  2. Outbound session creation cause bumping counter
  3. Inbound session creation success or throw an appropriate error (tested all cases)

Reviewers: michal, marcin, tomek

Reviewed By: marcin

Subscribers: ashoat

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

Details

Provenance
kamilAuthored on Apr 8 2024, 4:35 AM
Reviewer
marcin
Differential Revision
D11591: [native] update session creation code to handle versioning
Parents
rCOMMd860ace3c1f6: [web] update session creation code to handle versioning
Branches
Unknown
Tags
Unknown