HomePhabricator
Diffusion Comm a2a2d84a9b90

[lib] Pass userStateBeforeRecovery to setNewSession call in…

Description

[lib] Pass userStateBeforeRecovery to setNewSession call in resolveKeyserverSessionInvalidation

Summary: This resolves ENG-8244. This was an oversight... we should be passing userStateBeforeRecovery to setNewSession here in order to avoid triggering invalidSessionRecovery.

Test Plan:

  1. Log in a test user in a multi-keyserver environment
  2. Delete the user's cookie in MariaDB
  3. Background and foreground the app
  4. Confirm that we no longer trigger a loop of the error mentioned in the Linear task

Reviewers: inka, tomek

Reviewed By: tomek

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