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 6, 1:11 PM
Unknown Object (File)
Mon, Nov 4, 6:09 PM
Unknown Object (File)
Sun, Nov 3, 6:43 AM
Unknown Object (File)
Thu, Oct 31, 7:48 PM
Unknown Object (File)
Wed, Oct 30, 10:49 PM
Unknown Object (File)
Tue, Oct 29, 4:02 PM
Unknown Object (File)
Mon, Oct 28, 10:07 PM
Unknown Object (File)
Mon, Oct 28, 5:42 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