HomePhabricator
Diffusion Comm 71a5db08b388

Create new olm session during invalidated cookie resolution

Description

Create new olm session during invalidated cookie resolution

Summary: This differential implements new olm session establishment on native during invalidated cookie resolution.

Test Plan:

  1. Go to the socket.react.js file in lib.
  2. Inside a function initializeSocket throw an error under await this.sendInitialMessage();.
  3. Change this.failuresAfterPolicyAcknowledgment >= 2 condition to this.failuresAfterPolicyAcknowledgment >= 0.

Now we will be repeatbedly calling socketCrashLoopRecivery() which calls resolveInvalidatedCookie.

  1. In regular intervals issue select * from olm_sessions; query. Ensure new entries appear in the database.

Reviewers: tomek, atul, bartek

Reviewed By: tomek

Subscribers: ashoat

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

Details

Provenance
marcinAuthored on Jun 1 2023, 6:05 AM
Reviewer
tomek
Differential Revision
D7853: Create new olm session during invalidated cookie resolution
Parents
rCOMM836bc26762dd: Establish olm notifs sessions during siwe account creation
Branches
Unknown
Tags
Unknown