Page MenuHomePhabricator

[lib] Invalidate UserIdentityCache when changing FID
ClosedPublic

Authored by ashoat on Wed, Oct 16, 8:52 PM.
Tags
None
Referenced Files
F2999322: D13737.diff
Thu, Oct 17, 10:22 PM
F2993251: D13737.id45239.diff
Thu, Oct 17, 6:35 AM
F2993094: D13737.id.diff
Thu, Oct 17, 6:21 AM
F2992855: D13737.id.diff
Thu, Oct 17, 5:40 AM
F2992821: D13737.id45239.diff
Thu, Oct 17, 5:14 AM
F2992675: D13737.diff
Thu, Oct 17, 4:31 AM
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
No Lint Coverage
Unit
No Test Coverage