HomePhabricator
Diffusion Comm d6cf5bc0332a

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