Create new olm session during invalidated cookie resolution
Summary: This differential implements new olm session establishment on native during invalidated cookie resolution.
Test Plan:
- Go to the socket.react.js file in lib.
- Inside a function initializeSocket throw an error under await this.sendInitialMessage();.
- Change this.failuresAfterPolicyAcknowledgment >= 2 condition to this.failuresAfterPolicyAcknowledgment >= 0.
Now we will be repeatbedly calling socketCrashLoopRecivery() which calls resolveInvalidatedCookie.
- 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