Page MenuHomePhabricator

[lib] Invalidate UserIdentityCache when changing FID
ClosedPublic

Authored by ashoat on Oct 16 2024, 8:52 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Nov 27, 6:49 PM
Unknown Object (File)
Mon, Nov 25, 3:23 AM
Unknown Object (File)
Nov 20 2024, 8:56 AM
Unknown Object (File)
Nov 20 2024, 8:56 AM
Unknown Object (File)
Nov 6 2024, 1:11 PM
Unknown Object (File)
Nov 4 2024, 6:09 PM
Unknown Object (File)
Nov 3 2024, 6:43 AM
Unknown Object (File)
Oct 31 2024, 7:48 PM
Subscribers

Details

Summary

When we change the current user's FID, we should invalidate their entry in the UserIdentityCache. Otherwise, FarcasterDataHandler will continue to use the old value, and can end up wiping the FID if handleCurrentUserFID is run again before the app is killed (this can happen if the app is backgrounded/foregrounded).

This addresses ENG-9704.

Depends on D13736

Test Plan
  1. Open mobile app when Farcaster account not linked
  2. Link Farcaster account
  3. Background the app
  4. Foreground the app
  5. Confirm that the Farcaster account is not unlinked

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable