This differential implements new olm session establishment on native during invalidated cookie resolution.
Details
Details
- 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.
Diff Detail
Diff Detail
- Repository
- rCOMM Comm
- Lint
No Lint Coverage - Unit
No Test Coverage
Event Timeline
native/account/resolve-invalidated-cookie.js | ||
---|---|---|
19 ↗ | (On Diff #26608) | Accidental console.log was left here |